Move availability text into the template
This commit is contained in:
parent
ec05e3b2b8
commit
3c5c46855f
|
@ -19,9 +19,9 @@ author:
|
||||||
role: Senior Drupal Developer
|
role: Senior Drupal Developer
|
||||||
website: https://www.appnovation.com
|
website: https://www.appnovation.com
|
||||||
|
|
||||||
availability: |
|
availability:
|
||||||
<p><i class="fa fa-thumbs-o-down text-danger"></i> Currently no spare part-time capacity.</p>
|
full: no
|
||||||
<p><i class="fa fa-thumbs-o-down text-danger"></i> Currently no spare full-time capacity.</p>
|
part: no
|
||||||
|
|
||||||
companies:
|
companies:
|
||||||
appnovation:
|
appnovation:
|
||||||
|
|
|
@ -2,6 +2,25 @@
|
||||||
<div class="panel-heading">Availability</div>
|
<div class="panel-heading">Availability</div>
|
||||||
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{{ site.availability|raw }}
|
{% for key, availability in site.availability %}
|
||||||
|
<p>
|
||||||
|
{% if availability == 'yes' %}
|
||||||
|
<i class="fa fa-thumbs-o-up text-success"></i>
|
||||||
|
|
||||||
|
{{ key == 'full' ? 'Currently have available full-time capacity' }}
|
||||||
|
{{ key == 'part' ? 'Currently have available part-time capacity' }}
|
||||||
|
{% elseif availability == 'limited' %}
|
||||||
|
<i class="fa fa-thumbs-o-up text-warning"></i>
|
||||||
|
|
||||||
|
{{ key == 'full' ? 'Currently have limited full-time capacity' }}
|
||||||
|
{{ key == 'part' ? 'Currently have limited part-time capacity' }}
|
||||||
|
{% else %}
|
||||||
|
<i class="fa fa-thumbs-o-down text-danger"></i>
|
||||||
|
|
||||||
|
{{ key == 'full' ? 'Currently no spare full-time capacity.' }}
|
||||||
|
{{ key == 'part' ? 'Currently no spare part-time capacity.' }}
|
||||||
|
{% endif %}
|
||||||
|
</p>
|
||||||
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue