striptags for all user-entered strings
[mygpo.git] / mygpo / web / templates / toplist.html
blobd54845dd5584b970f0cedb746a932f02a06a3c0f
1 {% extends "base.html" %}
2 {% load i18n %}
4 {% block content %}
5 <h1>{% trans "Toplist" %}</h1>
7 <p>{% blocktrans with entries|length as count %}These are the {{ count }} most subscribed podcasts.{% endblocktrans %}</p>
9 <table class="list">
10 <tr>
11 <th>{% trans "#" %}</th>
12 <th>{% trans "Last week" %}</th>
13 <th>{% trans "Podcast" %}</th>
14 <th>{% trans "Subscribers" %}</th>
15 </tr>
16 {% for entry in entries %}
17 <tr>
18 <td>{{ forloop.counter }}</td>
19 <td class="numeric">{{ entry.oldplace|default_if_none:"" }}</td>
20 <td><a href="/podcast/{{ entry.podcast.id }}">{{ entry.podcast|striptags }}</a></td>
21 <td class="numeric">{{ entry.subscriptions }}</td>
22 </tr>
23 {% endfor %}
24 </table>
26 <div class="info"><strong>Get the toplist from your Client</strong>! Access <a href="/toplist/30.opml">http://{{ url }}/toplist/30.opml</a> for the Top-30.</div>
27 {% endblock %}