Browse Source

Interests, kind 10015

imwald
Nuša Pukšič 3 months ago
parent
commit
78d8d80b1f
  1. 17
      templates/event/_kind10015_tags.html.twig
  2. 3
      templates/event/index.html.twig

17
templates/event/_kind10015_tags.html.twig

@ -0,0 +1,17 @@ @@ -0,0 +1,17 @@
{% set tags = [] %}
{% for tag in event.tags %}
{% if tag[0] == 't' %}
{% set tags = tags|merge([tag[1]]) %}
{% endif %}
{% endfor %}
{% if tags %}
<div class="tag-cloud">
<h3>Interests</h3>
<div class="tags">
{% for tag in tags %}
<a href="{{ path('forum_tag', {'tag': tag}) }}" class="tag">{{ tag }}</a>
{% endfor %}
</div>
</div>
{% endif %}

3
templates/event/index.html.twig

@ -115,6 +115,8 @@ @@ -115,6 +115,8 @@
{% include 'event/_kind22_video.html.twig' %}
{% elseif event.kind == 1450 %}
{% include 'event/_kind1450_tabular.html.twig' %}
{% elseif event.kind == 10015 %}
{% include 'event/_kind10015_tags.html.twig' %}
{% else %}
{# Regular event content for non-picture and non-video events #}
<div class="event-content">
@ -178,4 +180,3 @@ @@ -178,4 +180,3 @@
</pre>
</div>
{% endblock %}

Loading…
Cancel
Save