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

ISTWCMS-4941: adding css and twig for view all buttons in multi-type listing

parent e50662ed
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 @@ ...@@ -2,4 +2,4 @@
{% include '@components/card/card--teaser/card--teaser.twig' with { {% include '@components/card/card--teaser/card--teaser.twig' with {
'teaser': info, '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 @@ ...@@ -20,22 +20,48 @@
{% block content_area_1 %} {% block content_area_1 %}
{% include '@components/multi-type-list/_multi-tab-list-include-content.twig' with { {% include '@components/multi-type-list/_multi-tab-list-include-content.twig' with {
'type': type, '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 %} {% endblock %}
{% elseif loop.parent.loop.index == 2 %} {% elseif loop.parent.loop.index == 2 %}
{% block content_area_2 %} {% block content_area_2 %}
{% include '@components/multi-type-list/_multi-tab-list-include-content.twig' with { {% include '@components/multi-type-list/_multi-tab-list-include-content.twig' with {
'type': type, '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 %} {% endblock %}
{% elseif loop.parent.loop.index == 3 %} {% elseif loop.parent.loop.index == 3 %}
{% block content_area_3 %} {% block content_area_3 %}
{% include '@components/multi-type-list/_multi-tab-list-include-content.twig' with { {% include '@components/multi-type-list/_multi-tab-list-include-content.twig' with {
'type': type, '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 %} {% endblock %}
{% endif %} {% 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