From a05f46a1aa6f178fa96577d7925873be83dca0a0 Mon Sep 17 00:00:00 2001
From: ebremner <ebremner@uwaterloo.ca>
Date: Tue, 8 Jun 2021 13:20:22 -0400
Subject: [PATCH] ISTWCMS-4619: updating multi-type list to use new teaser
 component

---
 .../_multi-tab-list-include-content.twig      | 56 +------------------
 1 file changed, 3 insertions(+), 53 deletions(-)

diff --git a/source/_patterns/04-components/multi-type-list/_multi-tab-list-include-content.twig b/source/_patterns/04-components/multi-type-list/_multi-tab-list-include-content.twig
index a7d84755..e0a616c6 100644
--- a/source/_patterns/04-components/multi-type-list/_multi-tab-list-include-content.twig
+++ b/source/_patterns/04-components/multi-type-list/_multi-tab-list-include-content.twig
@@ -1,55 +1,5 @@
 {% for info in lists[type] %}
-  {% if type == 'Blog' %}
-
-    {% include '@components/card/card.twig' with {
-      'title': info.title,
-      'url': info.url,
-      'date': info.date,
-      'author_name': info.author_name,
-      'author_link': info.author_link,
-      'sources': info.sources,
-      'img_element': info.img_element,
-      'alt': info.alt,
-      'tags': info.tags,
-      'show_hover': 'true',
-      'content': info.content,
-      'header_level': 2,
-    } %}
-
-  {% endif%}
-
-  {% if type == 'News' %}
-
-    {% include '@components/card/card.twig' with {
-      'title': info.title,
-      'url': info.url,
-      'date': info.date,
-      'sources': info.sources,
-      'img_element': info.img_element,
-      'alt': info.alt,
-      'tags': info.tags,
-      'show_hover': 'true',
-      'content': info.content,
-      'author_name': info.author_name,
-      'author_link': info.author_link
-    } %}
-
-  {% endif %}
-
-  {% if type == 'Events' %}
-
-    {% include '@components/card/card.twig' with {
-      'title': info.title,
-      'url': info.url,
-      'date': info.date,
-      'sources': info.sources,
-      'img_element': info.img_element,
-      'alt': info.alt,
-      'tags': info.tags,
-      'show_hover': 'true',
-      'content': info.content,
-      'header_level': 2,
-    } %}
-
-  {% endif %}
+  {% include '@components/teaser/teaser.twig' with {
+    'teaser': info,
+  } %}
 {% endfor %}
-- 
GitLab