Merge pull request #8 from andibraeu/tag-handling

show link to ics file
This commit is contained in:
Andi Bräu 2015-09-26 10:38:02 +02:00
commit ee3af3cd6d

View file

@ -41,8 +41,11 @@
class="ui icon edit green link" data-content="Ort bearbeiten" class="ui icon edit green link" data-content="Ort bearbeiten"
title="Ort bearbeiten"></i> </a> {% endif %} title="Ort bearbeiten"></i> </a> {% endif %}
</h1> </h1>
{% if tag|default(false) %} {% if tags|length == 1 %}
<a href="{{ path('tag_show',{'slug' : tag.slug }) }}.ics"><i class="icon calendar"></i>Link zur <a href="{{ path('tag_show',{'slug' : tags[0].slug }) }}.ics"><i class="icon calendar"></i>Link zur
Kalenderdatei</a>
{% elseif(tags|length > 1) %}
<a href="/tags/{% for tag in tags %}{{ tag.slug }}{% if not loop.last %}{% if operator == 'or' %}%7C{% elseif(operator == 'and') %}%26{% endif %}{% endif %}{% endfor %}.ics"><i class="icon calendar"></i>Link zur
Kalenderdatei</a> Kalenderdatei</a>
{% endif %} {% endif %}
{% if location|default(false) %} {% if location|default(false) %}