use django.contrib.staticfiles everywhere
[mygpo.git] / mygpo / directory / templates / toplist.html
blob84ee70e83edcb96a03be995289e6b98e6378b934
1 {% extends "base.html" %}
3 {% load i18n %}
4 {% load podcasts %}
5 {% load charts %}
6 {% load math %}
7 {% load utils %}
8 {% load static %}
10 {% load menu %}
11 {% block mainmenu %}{{ "/toplist/"|main_menu }}{% endblock %}
12 {% block sectionmenu %}{{ "/toplist/"|section_menu }}{% endblock %}
14 {% block title %}{% trans "Toplist" %}{% endblock %}
16 {% block header %}
17 <h1>{% trans "Toplist" %}</h1>
18 {% endblock %}
20 {% block content %}
21 <table class="list">
22 <tr>
23 <th></th>
24 <th></th>
25 <th></th>
26 <th>{% trans "Podcast" %}</th>
27 <th>{% trans "Subscribers" %}</th>
28 </tr>
29 {% for oldpos, podcast in entries %}
30 <tr>
31 <td class="numeric toplist-pos">
32 {% ifchanged podcast.subscriber_count %}
33 {{ forloop.counter }}
34 {% endifchanged %}
35 </td>
36 <td class="oldposition">
37 {% if oldpos %}
38 {% if oldpos|subtract:forloop.counter %}
39 {{ oldpos|subtract:forloop.counter|format_diff }}
40 {% endif %}
41 {% else %}
42 <img src="{% static "charts-new.png" %}" alt="new">
43 {% endif %}
44 </td>
45 <td class="logo">{{ podcast|podcast_logo }}</td>
46 <td>
47 {% podcast_group_link podcast %}
48 </td>
49 <td>{% vertical_bar podcast.subscriber_count max_subscribers %}</td>
50 </tr>
51 {% empty %}
52 <tr>
53 <td colspan="5">
54 {% trans "Currently not available" %}
55 </td>
56 </tr>
57 {% endfor %}
58 </table>
60 {% endblock %}
63 {% block sidebar %}
65 <div class="well">
67 <h4>{% trans "Language" %}</h4>
68 <form class="form-inline" action="{% url "toplist" %}" method="get">
69 <select class="input-medium" name="lang">
71 {% if language == "" %}
72 <option selected="selected" value="">{% trans "all" %}</option>
73 {% else %}
74 <option value="">{% trans "all" %}</option>
75 {% endif %}
78 {% for key, name in all_languages.iteritems %}
79 {% if language == key %}
80 <option selected="selected" value="{{ key }}">{{ name }}</option>
81 {% else %}
82 <option value="{{ key }}">{{ name }}</option>
83 {% endif %}
84 {% endfor %}
85 </select>
86 <input class="btn btn-primary" type="submit" value="{% trans "OK" %}" />
87 </form>
88 </div>
90 <div class="well">
91 <h4>{% trans "Client Access" %}</h4>
93 <p>Access <a href="{% url "toplist-opml" 30 "opml" %}">http://{{ url }}{% url "toplist-opml" 30 "opml" %}</a> for the Top-30.</p>
94 </div>
96 {% endblock %}