Commit 55e811ba authored by gijs's avatar gijs
Browse files

Tags & produsers

parent 888dc99f
...@@ -50,11 +50,7 @@ ...@@ -50,11 +50,7 @@
{% for item in events %} {% for item in events %}
<li id="{{ item.key }}"> <li id="{{ item.key }}">
<h2>{% if item.time.value %}{{ item.time }}{% endif %} {{ item }}</h2> <h2>{% if item.time.value %}{{ item.time }}{% endif %} {{ item }}</h2>
<p class="event-infos"> {% with item=item %}{% include "snippets/metadata.html" %}{% endwith %}
{% for produser in item.produser|link_target_iterator %}
<a href="{{ produser.link }}" class="produser">{{ produser }}</a>
{% endfor %}
</p>
{% if item.summary %} {% if item.summary %}
{{ item.summary }} {{ item.summary }}
{% else %} {% else %}
...@@ -68,7 +64,6 @@ ...@@ -68,7 +64,6 @@
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}
{% with item=item %}{% include "snippets/metadata.html" %}{% endwith %}
</li> </li>
{% endfor %} {% endfor %}
{% endfor %} {% endfor %}
......
...@@ -15,6 +15,11 @@ ...@@ -15,6 +15,11 @@
<h2>Trajectory</h2> <h2>Trajectory</h2>
{{ trajectory.content }} {{ trajectory.content }}
</section> </section>
{% with trajectory.tags|without_inline_links as tags %}
{% if tags %}
{% include "snippets/tags.html" %}
{% endif %}
{% endwith %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
......
{% load generator_utils %} {% load generator_utils %}
{% with item.tags|without_inline_links as tags %}
{% if tags %}
<section class="item--metadata item--tags">
<h4>Tags</h4>
{% include "snippets/tags.html" %}
</section>
{% endif %}
{% endwith %}
{% combine_linkfields item.produser item.participant as produser_combined %} {% combine_linkfields item.produser item.participant as produser_combined %}
{% if item.tags and item.tags|without_inline_links %}
<section class="item--metadata item--tags">
<h4>Tags</h4>
<ul class="inlinelist">
{% for tag in item.tags|without_inline_links|link_target_iterator %}
<li><a href="{{ tag.link }}" class="tag">{{ tag }}</a></li>
{% endfor %}
</ul>
</section>
{% endif %}
{% if produser_combined %} {% if produser_combined %}
<section class="item--produsers item--metadata"> <section class="item--produsers item--metadata">
<h4>Produsers</h4> <h4>Produsers</h4>
<ul class="inlinelist"> {% with produsers=produser_combined %}
{% for produser in produser_combined|link_target_iterator %} {% include "snippets/produsers.html" %}
<li><a class="produser" href="{{ produser.link }}">{{ produser }}</a></li> {% endwith %}
{% endfor %} </section>
</section>
{% endif %} {% endif %}
\ No newline at end of file
{% load generator_utils %}
<ul class="inlinelist">
{% for produser in produsers|link_target_iterator %}
<li><a class="produser" href="{{ produser.link }}">{{ produser }}</a></li>
{% endfor %}
</ul>
\ No newline at end of file
{% load generator_utils %}
<ul class="inlinelist">
{% for tag in tags|link_target_iterator %}
<li><a href="{{ tag.link }}" class="tag">{{ tag }}</a></li>
{% endfor %}
</ul>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment