use new style {% url "view" %} template syntax
[mygpo.git] / mygpo / directory / templates / episode_toplist.html
blob0dda61d96598af92d9caab45079bbf3da6124669
1 {% extends "base.html" %}
2 {% load url from future %}
3 {% load i18n %}
4 {% load podcasts %}
5 {% load episodes %}
6 {% load charts %}
7 {% load utils %}
9 {% load menu %}
10 {% block mainmenu %}{{ "/toplist/episodes"|main_menu }}{% endblock %}
11 {% block sectionmenu %}{{ "/toplist/episodes"|section_menu }}{% endblock %}
13 {% block title %}{% trans "Episode-Toplist" %}{% endblock %}
15 {% block header %}
16 <h1>{% trans "Episode-Toplist" %}</h1>
17 {% endblock %}
19 {% block content %}
21 <table class="list episode_list">
22 <tr>
23 <th></th>
24 <th></th>
25 <th>{% trans "Episode" %}</th>
26 <th>{% trans "Listeners" %}</th>
27 </tr>
28 {% for entry in entries %}
29 <tr>
30 <td class="numeric toplist-pos">
31 {% ifchanged entry.listeners %}
32 {{ forloop.counter }}
33 {% endifchanged %}
34 </td>
35 <td>{{ entry.podcast|podcast_logo }}</td>
36 <td>{% episode_link entry entry.podcast %}<br/>
37 <span class="from_podcast">{% trans "from" %} {% podcast_group_link entry.podcast %}</td>
38 <td>{% vertical_bar entry.listeners max_listeners %}</td>
39 {% empty %}
40 <tr>
41 <td colspan="4">
42 {% trans "Currently not available" %}
43 </td>
44 </tr>
45 {% endfor %}
46 </table>
48 {% endblock %}
51 {% block sidebar %}
53 <div class="well">
54 <h4>{% trans "Language" %}</h4>
55 <form class="form-inline" action="{% url "episode-toplist" %}" method="get">
56 <select class="input-medium" name="lang">
57 {% if language == "" %}
58 <option selected="selected" value="">{% trans "all" %}</option>
59 {% else %}
60 <option value="">{% trans "all" %}</option>
61 {% endif %}
63 {% for key, name in all_languages.iteritems %}
64 {% if language == key %}
65 <option selected="selected" value="{{ key }}">{{ name }}</option>
66 {% else %}
67 <option value="{{ key }}">{{ name }}</option>
68 {% endif %}
69 {% endfor %}
70 </select>
71 <input class="btn btn-primary" type="submit" value="{% trans "OK" %}" />
72 </form>
74 </div>
76 {% endblock %}