parent
1e93473285
commit
1220aa885a
|
@ -65,6 +65,19 @@ fuzzy_date_format: F Y
|
||||||
title_separator: "|"
|
title_separator: "|"
|
||||||
html_lang: en-GB
|
html_lang: en-GB
|
||||||
|
|
||||||
|
availability:
|
||||||
|
status:
|
||||||
|
day: { available: no, start: ~, end: ~ }
|
||||||
|
evenings: { available: limited, start: 2015-08-10, end: ~ }
|
||||||
|
text:
|
||||||
|
day:
|
||||||
|
yes: <i class="fa fa-thumbs-o-up text-success"></i> Available for day contract work
|
||||||
|
no: <i class="fa fa-thumbs-o-down text-danger"></i> Not available for day contract work
|
||||||
|
evenings:
|
||||||
|
yes: <i class="fa fa-thumbs-o-up text-success"></i> Available for weekend/evening freelance work
|
||||||
|
limited: <i class="fa fa-thumbs-o-up text-warning"></i> Limited availability for weekend/evening freelance work
|
||||||
|
no: <i class="fa fa-thumbs-o-down text-danger"></i> Not availabile for weekend/evening freelance work
|
||||||
|
|
||||||
companies:
|
companies:
|
||||||
horse_country:
|
horse_country:
|
||||||
title: 'Horse & Country TV'
|
title: 'Horse & Country TV'
|
||||||
|
|
|
@ -2,12 +2,26 @@
|
||||||
<div class="panel-heading">Availability</div>
|
<div class="panel-heading">Availability</div>
|
||||||
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<p>
|
{% set now = "now"|date('U') %}
|
||||||
<i class="fa fa-thumbs-o-down text-danger"></i> Not available for day contract work.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p style="margin-bottom: 0">
|
{% for type, data in site.availability.status %}
|
||||||
<i class="fa fa-thumbs-o-up text-warning"></i> Limited availability for weekend/evening freelance work.
|
{% set text = site.availability.text[type][data.available] %}
|
||||||
</p>
|
|
||||||
|
{% if data.start %}
|
||||||
|
{% if data.start|date('U') > now %}
|
||||||
|
{% set text = text ~ ' starting ' ~ data.start|date('F Y') %}
|
||||||
|
|
||||||
|
{% if data.end %}
|
||||||
|
{% set text = text ~ ',' %}
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if data.end %}
|
||||||
|
{% set text = text ~ ' until ' ~ data.end|date('F Y') %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<p>{{ text|raw }}.</p>
|
||||||
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue