use new style {% url "view" %} template syntax
[mygpo.git] / mygpo / web / templates / mytags.html
blobfbce44fb119c358664181f21e938a8e15c410745
1 {% extends "base.html" %}
2 {% load url from future %}
3 {% load i18n %}
4 {% load devices %}
5 {% load episodes %}
6 {% load podcasts %}
8 {% load menu %}
9 {% block mainmenu %}{{ "/subscriptions/"|main_menu }}{% endblock %}
10 {% block sectionmenu %}{{ "/tags/"|section_menu }}{% endblock %}
12 {% block title %}{% trans "My Tags" %}{% endblock %}
14 {% block header %}
15 <h1>{% trans "My Tags" %}</h1>
16 {% endblock %}
19 {% block content %}
21 {% if tags_podcast %}
23 <table class="list">
24 {% for tag, podcast_list in tags_tag.items %}
25 <tr>
26 <td>{{ tag }}</td>
27 <td>
28 {% for podcast in podcast_list %}
29 <a href="{% podcast_link_target podcast %}">{{ podcast|podcast_logo }}</a>
30 {% endfor %}
31 </td>
32 </tr>
33 {% endfor %}
35 </table>
38 {% else %}
40 <p>
41 {% url "subscriptions" as subscriptions-url %}
42 {% blocktrans %}You didn't tag any podcasts yet. Go to your <a href="{{ subscriptions-url }}">subscriptions</a> and tag some.{% endblocktrans %}
43 </p>
45 {% endif %}
47 {% endblock %}