From adef3c85a402ed513919bb5f8b90d27e06f1d3e5 Mon Sep 17 00:00:00 2001 From: ebremner <ebremner@uwaterloo.ca> Date: Wed, 16 Jun 2021 13:23:10 -0400 Subject: [PATCH] ISTWCMS-4704: updating profiles to use content grid list and teaser card --- .../04-components/profile/profile.twig | 36 +++++-------------- 1 file changed, 9 insertions(+), 27 deletions(-) diff --git a/source/_patterns/04-components/profile/profile.twig b/source/_patterns/04-components/profile/profile.twig index 73e16149..cccbda05 100644 --- a/source/_patterns/04-components/profile/profile.twig +++ b/source/_patterns/04-components/profile/profile.twig @@ -1,29 +1,11 @@ <div class="uw-profiles"> - {% for profile in profiles %} - <div class="uw-profile"> - <div class="uw-profile__infobar"> - {% if profile.image %} - <div class="uw-profile__image"> - <a href="{{ profile.url }}"> - <img src="{{ profile.image.url }}" alt="{{ profile.image.alt }}" /> - </a> - </div> - {% endif %} - <div class="uw-profile__personal"> - <div class="uw-profile__title"> - <h2><a href="{{ profile.url }}">{{ profile.title }}</a></h2> - </div> - <div class="uw-profile__position"> - {{ profile.position }} - </div> - </div> - </div> - <div class="uw-profile__affiliation"> - {{ profile.affiliation }} - </div> - <div class="uw-profile__summary"> - {{ profile.summary }} - </div> - </div> - {% endfor %} + {% embed '@components/content-grid-list/content-grid-list.twig' %} + {% block content %} + {% for profile in profiles %} + {% include '@components/card/card--teaser/card--teaser.twig' with { + teaser: profile, + } %} + {% endfor %} + {% endblock %} + {% endembed %} </div> \ No newline at end of file -- GitLab