Skip to content
Snippets Groups Projects
Commit f5009ffc authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

ISTWCMS-5900: fixing template used for contacts in views-list

parent 97841cc4
No related branches found
No related tags found
1 merge request!53ISTWCMS-5900: adding view lists
...@@ -2,10 +2,16 @@ ...@@ -2,10 +2,16 @@
{% embed '@components/content-grid-list/content-grid-list.twig' %} {% embed '@components/content-grid-list/content-grid-list.twig' %}
{% block content %} {% block content %}
{% for item in items %} {% for item in items %}
{% include '@components/card/card--teaser/_card--teaser.twig' with { {% if type == 'contact' %}
'teaser': item, {% include '@components/contact/contact.twig' with {
'type': 'teaser', 'contact': item,
} %} } %}
{% else %}
{% include '@components/card/card--teaser/_card--teaser.twig' with {
'teaser': item,
'type': 'teaser',
} %}
{% endif %}
{% endfor %} {% endfor %}
{% endblock %} {% endblock %}
{% endembed %} {% endembed %}
......
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