Simplify availability includes

This commit is contained in:
Oliver Davies 2017-09-23 06:45:54 +01:00
parent 3a788784b6
commit 040cc805b2
4 changed files with 10 additions and 20 deletions

View file

@ -2,8 +2,10 @@
<h2>Availability</h2>
<ul class="list pa0">
{% for key, availability in site.availability %}
{% include 'availability/' ~ availability with { value: key } %}
{% for type, value in site.availability %}
<li>
{% include 'availability/' ~ value %}
</li>
{% endfor %}
</ul>
</div>

View file

@ -1,6 +1,2 @@
<li>
<i class="mr1 fa fa-thumbs-o-up orange"></i>
{{ value == 'full' ? 'Currently have limited full-time capacity' }}
{{ value == 'part' ? 'Currently have limited part-time capacity' }}
</li>
<i class="mr1 fa fa-thumbs-o-up orange"></i>
Currently have limited {{ type }}-time capacity.

View file

@ -1,6 +1,2 @@
<li>
<i class="mr1 fa fa-thumbs-o-down dark-red"></i>
{{ value == 'full' ? 'Currently no spare full-time capacity.' }}
{{ value == 'part' ? 'Currently no spare part-time capacity.' }}
</li>
<i class="mr1 fa fa-thumbs-o-down dark-red"></i>
Currently no spare {{ type }}-time capacity.

View file

@ -1,6 +1,2 @@
<li>
<i class="mr1 fa fa-thumbs-o-up dark-green"></i>
{{ value == 'full' ? 'Currently have available full-time capacity' }}
{{ value == 'part' ? 'Currently have available part-time capacity' }}
</li>
<i class="mr1 fa fa-thumbs-o-up dark-green"></i>
Currently have available {{ type }}-time capacity.