Skip to content
Snippets Groups Projects
Commit cd7f9d2c authored by Konstantinos Platis's avatar Konstantinos Platis
Browse files

Changed implementation for Agenda Box to have word "Event" as default

content type
parent 7730f3fc
No related branches found
No related tags found
2 merge requests!47Merge RC v2.6.0 to master,!37Resolve "Agenda Box does not show Event if Content type is not assigned"
...@@ -89,21 +89,14 @@ ...@@ -89,21 +89,14 @@
{% endif %} {% endif %}
{# Content Type field #} {# Content Type field #}
{% if content_type | render %} {# Initializes content_type with word "Event"#}
{% set ct = '' %} {% set ct = 'Event' %}
{% if content_type | render | striptags | trim == "Event Page" %} {% if content_type | render | striptags | trim == "Webcast Event" %}
{% set ct = 'Event' %} {% set ct = 'Webcast' %}
{% endif %} {% endif %}
{% if content_type | render | striptags | trim == "Indico Event" %} <div class="agenda-box-content-type">
{% set ct = 'Event' %} {{ ct|t }}
{% endif %} </div>
{% if content_type | render | striptags | trim == "Webcast Event" %}
{% set ct = 'Webcast' %}
{% endif %}
<div class="agenda-box-content-type">
{{ ct|t }}
</div>
{% endif %}
{# Place field #} {# Place field #}
{% if place | render %} {% if place | render %}
......
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