Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Unverified Commit cdc9292c authored by Szilagyi Andras's avatar Szilagyi Andras Committed by GitHub
Browse files

Merge pull request #106 from openeuropa/OEL-0000

OEL-0000: Improve News & Event teaser templates.
parents ea3fc410 a2bd99e0
No related branches found
No related tags found
1 merge request!113Merge 1.x into EPIC-OEL-1255-migrate-paragraphs
{#
/**
* @file
* Search result template.
* Theme override to display a node of bundle event in the teaser view mode.
*/
#}
{% set _title %}
<a class="text-underline-hover" href="{{ url }}">{{ label }}</a>
<a class="standalone" href="{{ url }}">{{ label }}</a>
{% endset %}
{% set _content %}
<span class="text-muted text-nowrap me-4-5">{{ content.oe_sc_event_dates }}</span>
{% endset %}
{% block content %}
<article{{attributes}}>
{{ pattern('card', {
variant: 'search',
......@@ -18,3 +19,5 @@
image: image,
content: _content
}) }}
</article>
{% endblock %}
{#
/**
* @file
* Search result template.
* Theme override to display a node of bundle news in the teaser view mode.
*/
#}
{% set _title %}
<a class="text-underline-hover" href="{{ url }}">{{ label }}</a>
<a class="standalone" href="{{ url }}">{{ label }}</a>
{% endset %}
{% set _content %}
<span class="text-muted text-nowrap me-4-5">{{ content.oe_publication_date }}</span>
{% endset %}
{% block content %}
<article{{attributes}}>
{{ pattern('card', {
variant: 'search',
......@@ -19,3 +20,4 @@
content: _content
}) }}
</article>
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment