From cd7f9d2ccbbfed2472134ff5944944e06667b9eb Mon Sep 17 00:00:00 2001
From: Konstantinos Platis <konstantinos.platis@cern.ch>
Date: Mon, 3 Jun 2019 10:07:51 +0200
Subject: [PATCH] Changed implementation for Agenda Box to have word "Event" as
 default content type

---
 .../molecules/agenda-box/agenda-box.html.twig | 23 +++++++------------
 1 file changed, 8 insertions(+), 15 deletions(-)

diff --git a/patterns/molecules/agenda-box/agenda-box.html.twig b/patterns/molecules/agenda-box/agenda-box.html.twig
index 3e5ba74e..1ea65f3e 100644
--- a/patterns/molecules/agenda-box/agenda-box.html.twig
+++ b/patterns/molecules/agenda-box/agenda-box.html.twig
@@ -89,21 +89,14 @@
         {% endif %}
 
         {# Content Type field #}
-        {% if content_type | render %}
-            {% set ct = '' %}
-            {% if content_type | render | striptags | trim == "Event Page" %}
-                {% set ct = 'Event' %}
-            {% endif %}
-            {% if content_type | render | striptags | trim == "Indico Event" %}
-                {% set ct = 'Event' %}
-            {% endif %}
-            {% if content_type | render | striptags | trim == "Webcast Event" %}
-                {% set ct = 'Webcast' %}
-            {% endif %}
-            <div class="agenda-box-content-type">
-                {{ ct|t }}
-            </div>
-        {% endif %}
+				{# Initializes content_type with word "Event"#}
+				{% set ct = 'Event' %}
+				{% if content_type | render | striptags | trim == "Webcast Event" %}
+						{% set ct = 'Webcast' %}
+				{% endif %}
+				<div class="agenda-box-content-type">
+						{{ ct|t }}
+				</div>
 
         {# Place field #}
         {% if place | render %}
-- 
GitLab