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

Whitespace control

parent b9980d11
Pipeline #152792 passed with stages
in 36 seconds
......@@ -159,10 +159,10 @@ body .vf-hero {
</style>
<section data-jplist-group="data-group-1">
{%- for job in emblJobs %}
{%- for job in emblJobs -%}
{# Show promoted "sticky" jobs #}
{% if job.field_jobs_sticky == 1 %}
{%- if job.field_jobs_sticky == 1 -%}
<div data-jplist-item>
<article class="vf-summary vf-summary--job | jplist-text-area vf-box vf-box-theme--quinary">
......@@ -198,7 +198,7 @@ body .vf-hero {
{%- endfor %}
{%- for job in emblJobs -%}
{# Show non-sticky jobs #}
{#- Show non-sticky jobs -#}
{# <pre>{{ job | dump(2)}}</pre> #}
{%- if job.field_jobs_sticky != 1 -%}
......@@ -208,22 +208,22 @@ body .vf-hero {
<h3 class="vf-summary__title">
<a href="/jobs/position/{{ job.field_jobs_reference_number }}" class="vf-summary__link">
{{ job.title | striptags | safe }}
{{- job.title | striptags | safe -}}
</a>
</h3>
<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 }}
{% if job.field_jobs_group == 'EMBO' %}
<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 -}}
{%- 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 %}
in <span class="jplist-duty-station">{{- job.field_jobs_duty_station | striptags -}}</span>
{%- endif -%}
</p>
{% 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)" %}
<div class="vf-u-display-none | used-for-filtering">
<span class="jplist-duty-station">barcelona</span>
<span class="jplist-duty-station">grenoble</span>
......@@ -236,9 +236,9 @@ body .vf-hero {
<span class="jplist-duty-station">rome</span>
{%- endif -%}
</div>
{% endif %}
{% endif -%}
{# Hidden fields for data sorting #}
{#- Hidden fields for data sorting -#}
<div class="vf-u-display-none | used-for-filtering">
<span class="jplist-event-time">
{# bug: jplist only works with american style dates, although the docs seem to say otherwise #}
......@@ -255,11 +255,11 @@ body .vf-hero {
<span class="jplist-job-type | vf-u-display-none">{{ job.field_jobs_type_key }}</span>
{# <a href="/jobs/position/{{ job.field_jobs_reference_number }}" class="vf-summary__button | vf-button vf-button--primary vf-button--outline vf-button--sm">Learn more</a> #}
{#- <a href="/jobs/position/{{ job.field_jobs_reference_number }}" class="vf-summary__button | vf-button vf-button--primary vf-button--outline vf-button--sm">Learn more</a> -#}
<p class="vf-summary__date">Closes {{ job.field_jobs_expiration | striptags | parseDate | prettyDate}}</p>
</article>
</div> {# / data-jplist-item #}
</div> {#- / data-jplist-item -#}
{%- endif -%}
{%- endfor %}
......
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