Commit a7f33427 authored by Ken Hawkins's avatar Ken Hawkins

Handle EMBO location

EMBO is a special case as the duty station is Heidelberg
parent 9b134f9f
Pipeline #97916 passed with stages
in 5 minutes and 1 second
......@@ -11,13 +11,15 @@
<fieldset class="vf-form vf-form__fieldset">
<legend class="vf-form__legend">Position location</legend>
{% spaceless %}
{% for key, name in locations | dictsort %}
{# count number of open positions #}
{% set counter = 0 %}
{%- for job in emblJobs %}
{% if key | makeLowercase in job.field_jobs_duty_station | makeLowercase %}
{% if key == 'EMBO' and job.field_jobs_group == 'EMBO' %}
{# EMBO is a special case as the duty station is Heidelberg #}
{% set counter = counter + 1 %}
{% elseif key | makeLowercase in job.field_jobs_duty_station | makeLowercase %}
{% set counter = counter + 1 %}
{% endif -%}
{% endfor -%}
......
......@@ -17,7 +17,7 @@ embl_content_meta_properties:
utility: 7
reach: 10
maintainer: EMBL Communications
lastreview: 2020.02.13
lastreview: 2020.09.09
reviewcycle: 365
expiry: never
---
......@@ -142,8 +142,12 @@ embl_content_meta_properties:
<p class="vf-summary__meta">
{# <a href="JavaScript:Void(0);" class="vf-summary__link">{{ job.field_jobs_staff_category | striptags }}</a> in
<a href="JavaScript:Void(0);" class="vf-summary__link | jplist-duty-station">{{ job.field_jobs_duty_station | striptags }}</a> #}
{{ job.field_jobs_staff_category | striptags }} in
{{ job.field_jobs_duty_station | striptags }}
{{ job.field_jobs_staff_category | striptags }}
{% if job.field_jobs_group == 'EMBO' %}
at <span class="jplist-duty-station">EMBO</span> in Heidelberg
{% else %}
in <span class="jplist-duty-station">{{ job.field_jobs_duty_station | striptags }}</span>
{% endif %}
</p>
<h3 class="vf-summary__title">
......
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