Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
embl.org
html-sites
embl-jobs-pages
Commits
d09191d4
Commit
d09191d4
authored
May 03, 2021
by
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
Changes
4
Pipelines
19
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
7 deletions
+24
-7
src/site/_includes/filter/job-location.njk
src/site/_includes/filter/job-location.njk
+6
-3
src/site/_includes/layouts/position.njk
src/site/_includes/layouts/position.njk
+4
-0
src/site/index.njk
src/site/index.njk
+7
-4
src/site/position/index.njk
src/site/position/index.njk
+7
-0
No files found.
src/site/_includes/filter/job-location.njk
View file @
d09191d4
...
...
@@ -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 -%}
...
...
src/site/_includes/layouts/position.njk
View file @
d09191d4
...
...
@@ -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 #}
...
...
src/site/index.njk
View file @
d09191d4
...
...
@@ -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>
...
...
src/site/position/index.njk
View file @
d09191d4
...
...
@@ -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">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment