Skip to content
Snippets Groups Projects
Commit c7b8e024 authored by Eric Bremner's avatar Eric Bremner
Browse files

Merge remote-tracking branch...

Merge remote-tracking branch 'origin/feature/ISTWCMS-4941-ebremner-multi-type-listing-buttons' into 3.0.x
parents 3cc9f4b0 70174955
No related branches found
No related tags found
1 merge request!76ISTWCMS-4941: adding css and twig for view all buttons in multi-type listing
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -2,4 +2,4 @@
{% include '@components/card/card--teaser/card--teaser.twig' with {
'teaser': info,
} %}
{% endfor %}
{% endfor %}
\ No newline at end of file
.uw-multi-type-list__button {
display: block;
text-align: center;
width: 100%;
}
......@@ -20,22 +20,48 @@
{% block content_area_1 %}
{% include '@components/multi-type-list/_multi-tab-list-include-content.twig' with {
'type': type,
'lists': lists
'lists': lists,
} %}
{% if view_all %}
<div class="uw-multi-type-list__button">
{% include '@components/button/button--large/button--large.twig' with {
'url': view_all[type].url,
'text': view_all[type].text,
} %}
</div>
{% endif %}
{% endblock %}
{% elseif loop.parent.loop.index == 2 %}
{% block content_area_2 %}
{% include '@components/multi-type-list/_multi-tab-list-include-content.twig' with {
'type': type,
'lists': lists
'lists': lists,
'view_all': view_all,
} %}
{% if view_all %}
<div class="uw-multi-type-list__button">
{% include '@components/button/button--large/button--large.twig' with {
'url': view_all[type].url,
'text': view_all[type].text,
} %}
</div>
{% endif %}
{% endblock %}
{% elseif loop.parent.loop.index == 3 %}
{% block content_area_3 %}
{% include '@components/multi-type-list/_multi-tab-list-include-content.twig' with {
'type': type,
'lists': lists
'lists': lists,
'view_all': view_all,
} %}
{% if view_all %}
<div class="uw-multi-type-list__button">
{% include '@components/button/button--large/button--large.twig' with {
'url': view_all[type].url,
'text': view_all[type].text,
} %}
</div>
{% endif %}
{% endblock %}
{% endif %}
......
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