Commit d09191d4 authored by Ken Hawkins's avatar Ken Hawkins
Browse files

Further exculsion of the exceptiona Grant writing position

parent 1f74c3c1
Pipeline #153370 passed with stages
in 2 minutes and 55 seconds
...@@ -23,9 +23,12 @@ ...@@ -23,9 +23,12 @@
{% endif -%} {% endif -%}
{% if job.field_jobs_duty_station | striptags == "All EMBL Sites (Germany, UK, France, Italy, Spain)" %} {% if job.field_jobs_duty_station | striptags == "All EMBL Sites (Germany, UK, France, Italy, Spain)" %}
{# If all duty stations, count for all #} {# If all duty stations, count for all #}
{% if key != 'rome' and key != 'EMBO' %} {% if key != 'EMBO' %}
{# Except for rome, because that's what HR said #} {% if key == 'rome' and job.title == 'Grant Writing Officer' %}
{% set counter = counter + 1 %} {# Except for the "Grant Writing Officer" position which is an exception #}
{% else %}
{% set counter = counter + 1 %}
{% endif %}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endfor -%} {% endfor -%}
......
...@@ -51,7 +51,11 @@ ...@@ -51,7 +51,11 @@
{% if pagination.items[0].field_jobs_staff_category != "EICAT Advertising Only" %} {% if pagination.items[0].field_jobs_staff_category != "EICAT Advertising Only" %}
<meta name="embl:who" content="none"> {# the people, groups and teams involved #} <meta name="embl:who" content="none"> {# the people, groups and teams involved #}
{% endif %} {% endif %}
{% if pagination.items[0].field_jobs_duty_station | striptags == "All EMBL Sites (Germany, UK, France, Italy, Spain)"%}
<meta name="embl:where" content="All EMBL sites">
{% else %}
<meta name="embl:where" content="{{ pagination.items[0].field_jobs_duty_station | striptags }}"> {# at which EMBL sites the content applies #} <meta name="embl:where" content="{{ pagination.items[0].field_jobs_duty_station | striptags }}"> {# at which EMBL sites the content applies #}
{% endif %}
<meta name="embl:what" content="{{ embl_content_meta_properties.what }}"> {# the activities covered #} <meta name="embl:what" content="{{ embl_content_meta_properties.what }}"> {# the activities covered #}
{# <meta name="embl:what" content="{{ pagination.items[0].field_jobs_categorisation }}"> the activities covered #} {# <meta name="embl:what" content="{{ pagination.items[0].field_jobs_categorisation }}"> the activities covered #}
<meta name="embl:active" content="{{ embl_content_meta_properties.active }}"> {# which of the who/what/where is active #} <meta name="embl:active" content="{{ embl_content_meta_properties.active }}"> {# which of the who/what/where is active #}
......
...@@ -222,15 +222,18 @@ body .vf-hero { ...@@ -222,15 +222,18 @@ body .vf-hero {
in <span class="jplist-duty-station">{{ job.field_jobs_duty_station | striptags }}</span> in <span class="jplist-duty-station">{{ job.field_jobs_duty_station | striptags }}</span>
{% endif %} {% endif %}
{% if job.field_jobs_duty_station | striptags == "All EMBL Sites (Germany, UK, France, Italy, Spain)" %} {% if job.field_jobs_duty_station | striptags == "All EMBL Sites (Germany, UK, France, Italy, Spain)" %}
{# If all duty stations, count for all #} <div class="vf-u-display-none | used-for-filtering">
{% if key != 'rome' and key != 'EMBO' %}
{# Except for rome, because that's what HR said #}
<span class="jplist-duty-station">barcelona</span> <span class="jplist-duty-station">barcelona</span>
<span class="jplist-duty-station">grenoble</span> <span class="jplist-duty-station">grenoble</span>
<span class="jplist-duty-station">hamburg</span> <span class="jplist-duty-station">hamburg</span>
<span class="jplist-duty-station">heidelberg</span> <span class="jplist-duty-station">heidelberg</span>
<span class="jplist-duty-station">hinxton</span> <span class="jplist-duty-station">hinxton</span>
{% endif %} {%- if job.title == 'Grant Writing Officer' -%}
{# "Grant Writing Officer" doesn't get listed in rome, because HR says so #}
{%- else -%}
<span class="jplist-duty-station">rome</span>
{%- endif -%}
</div>
{% endif %} {% endif %}
</p> </p>
......
...@@ -80,6 +80,13 @@ embl_content_meta_properties: ...@@ -80,6 +80,13 @@ embl_content_meta_properties:
Hinxton, UK Hinxton, UK
</span> </span>
</p> </p>
{% elseif currentJob.field_jobs_duty_station | striptags == "All EMBL Sites (Germany, UK, France, Italy, Spain)" and currentJob.title == 'Grant Writing Officer' %}
<p class="vf-intro__subheading"><span itemprop="employmentType">{{ currentJob.field_jobs_type }}
<span class="vf-intro__text">
<br/>
EMBL Sites in Germany, UK, France and Spain
</span>
</p>
{% else %} {% else %}
<p class="vf-intro__subheading"><span itemprop="employmentType">{{ currentJob.field_jobs_type }} <p class="vf-intro__subheading"><span itemprop="employmentType">{{ currentJob.field_jobs_type }}
<span class="vf-intro__text"> <span class="vf-intro__text">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment