Simplified availability
This commit is contained in:
parent
0f83aba1a4
commit
7ec30ec3d3
|
@ -10,6 +10,9 @@ fuzzy_date_format: F Y
|
||||||
locale: en-GB
|
locale: en-GB
|
||||||
title_separator: "|"
|
title_separator: "|"
|
||||||
|
|
||||||
|
ansible_galaxy:
|
||||||
|
url: 'https://galaxy.ansible.com/list#/users/14560'
|
||||||
|
|
||||||
author:
|
author:
|
||||||
name: Oliver Davies
|
name: Oliver Davies
|
||||||
bio: 'Oliver Davies is a Drupal Developer and System Administrator based in the UK. He is a Lead Developer at <a href="http://ctidigital.com">CTI Digital</a> and also provides freelance consultancy services for Drupal websites, PHP applications and Linux servers.'
|
bio: 'Oliver Davies is a Drupal Developer and System Administrator based in the UK. He is a Lead Developer at <a href="http://ctidigital.com">CTI Digital</a> and also provides freelance consultancy services for Drupal websites, PHP applications and Linux servers.'
|
||||||
|
@ -19,21 +22,9 @@ author:
|
||||||
website: https://www.ctidigital.com
|
website: https://www.ctidigital.com
|
||||||
logo: cti-digital.png
|
logo: cti-digital.png
|
||||||
|
|
||||||
ansible_galaxy:
|
availability: |
|
||||||
url: https://galaxy.ansible.com/list#/users/14560
|
<p><i class="fa fa-thumbs-o-down text-danger"></i> Not available for day contract work</p>
|
||||||
|
<p><i class="fa fa-thumbs-o-up text-warning"></i> Limited availability for weekend/evening freelance work</p>
|
||||||
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:
|
||||||
freelance:
|
freelance:
|
||||||
|
|
|
@ -2,26 +2,6 @@
|
||||||
<div class="panel-heading">Availability</div>
|
<div class="panel-heading">Availability</div>
|
||||||
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{% set now = "now"|date('U') %}
|
{{ site.availability|raw }}
|
||||||
|
|
||||||
{% for type, data in site.availability.status %}
|
|
||||||
{% set text = site.availability.text[type][data.available] %}
|
|
||||||
|
|
||||||
{% 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