Merge pull request #793 from gpodder/remove-advertise
[mygpo.git] / mygpo / directory / templates / toplist.html
blob4f607e9e5c2a7b7db4a39cc3f169c30343ad49ba
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 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 </td>
38 <td class="logo">{{ podcast|podcast_logo }}</td>
39 <td>
40 {% podcast_group_link podcast %}
41 </td>
42 <td>{% vertical_bar podcast.subscriber_count max_subscribers %}</td>
43 </tr>
44 {% empty %}
45 <tr>
46 <td colspan="5">
47 {% trans "Currently not available" %}
48 </td>
49 </tr>
50 {% endfor %}
51 </table>
53 {% endblock %}
56 {% block sidebar %}
58 <div class="well">
60 <h4>{% trans "Language" %}</h4>
61 <form class="form-inline" action="{% url "toplist" %}" method="get">
63 <div class="form-group">
64 <label class="sr-only" for="lang">{% trans "Language" %}</label>
65 <select class="form-control input-md" name="lang">
67 {% if view.language == "" %}
68 <option selected="selected" value="">{% trans "all" %}</option>
69 {% else %}
70 <option value="">{% trans "all" %}</option>
71 {% endif %}
74 {% for key, name in view.all_languages.iteritems %}
75 {% if view.language == key %}
76 <option selected="selected" value="{{ key }}">{{ name }}</option>
77 {% else %}
78 <option value="{{ key }}">{{ name }}</option>
79 {% endif %}
80 {% endfor %}
81 </select>
82 </div>
83 <button class="btn btn-primary btn-md" type="submit">{% trans "OK" %}</button>
84 </form>
85 </div>
87 <div class="well">
88 <h4>{% trans "Client Access" %}</h4>
90 <p>Access <a href="{% url "api-simple-toplist" 30 "opml" %}">http://{{ view.site }}{% url "api-simple-toplist" 30 "opml" %}</a> for the Top-30.</p>
91 </div>
93 {% endblock %}