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 @@
{% endif -%}
{% if job.field_jobs_duty_station | striptags == "All EMBL Sites (Germany, UK, France, Italy, Spain)" %}
{# If all duty stations, count for all #}
{% if key != 'rome' and key != 'EMBO' %}
{# Except for rome, because that's what HR said #}
{% set counter = counter + 1 %}
{% if key != 'EMBO' %}
{% if key == 'rome' and job.title == 'Grant Writing Officer' %}
{# Except for the "Grant Writing Officer" position which is an exception #}
{% else %}
{% set counter = counter + 1 %}
{% endif %}
{% endif %}
{% endif %}
{% endfor -%}
......
......@@ -51,7 +51,11 @@
{% if pagination.items[0].field_jobs_staff_category != "EICAT Advertising Only" %}
<meta name="embl:who" content="none"> {# the people, groups and teams involved #}
{% 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 #}
{% endif %}
<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:active" content="{{ embl_content_meta_properties.active }}"> {# which of the who/what/where is active #}
......
......@@ -222,15 +222,18 @@ body .vf-hero {
in <span class="jplist-duty-station">{{ job.field_jobs_duty_station | striptags }}</span>
{% endif %}
{% if job.field_jobs_duty_station | striptags == "All EMBL Sites (Germany, UK, France, Italy, Spain)" %}
{# If all duty stations, count for all #}
{% if key != 'rome' and key != 'EMBO' %}
{# Except for rome, because that's what HR said #}
<div class="vf-u-display-none | used-for-filtering">
<span class="jplist-duty-station">barcelona</span>
<span class="jplist-duty-station">grenoble</span>
<span class="jplist-duty-station">hamburg</span>
<span class="jplist-duty-station">heidelberg</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 %}
</p>
......
......@@ -80,6 +80,13 @@ embl_content_meta_properties:
Hinxton, UK
</span>
</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 %}
<p class="vf-intro__subheading"><span itemprop="employmentType">{{ currentJob.field_jobs_type }}
<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