Started refactoring
This commit is contained in:
parent
b83262aa0b
commit
64a690e541
|
@ -1,12 +1,21 @@
|
||||||
<div class="availability">
|
<div class="availability">
|
||||||
<h2>Availability</h2>
|
<h2>Availability</h2>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{% set now = "now"|date('U') %}
|
{% set output, now = '', "now"|date('U') %}
|
||||||
|
|
||||||
{% set day_available = site.availability.day.available %}
|
{% for type, data in site.availability %}
|
||||||
{% set day_start = site.availability.day.start %}
|
{% set text, status, start, end = '', site.availability[type].availability, site.availability[type].start,
|
||||||
{% set day_end = site.availability.day.end %}
|
site.availability[type].end %}
|
||||||
|
|
||||||
|
{% if type == 'day' %}
|
||||||
|
|
||||||
|
{% elseif type == 'evenings' %}
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
{#
|
||||||
{% if (day_available == 'no') %}
|
{% if (day_available == 'no') %}
|
||||||
{% set day_status = 'Not available for day contract work' %}
|
{% set day_status = 'Not available for day contract work' %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -52,5 +61,6 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<p>{{ evening_status }}.</p>
|
<p>{{ evening_status }}.</p>
|
||||||
|
#}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Reference in a new issue