fix wrong links on podcast-lists page
[mygpo.git] / mygpo / directory / templates / podcast_lists.html
bloba52d134910e9ac39ad0965fea67fa7b754f83f6f
1 {% extends "base.html" %}
3 {% load i18n %}
4 {% load podcasts %}
5 {% load charts %}
6 {% load math %}
7 {% load utils %}
9 {% load menu %}
10 {% block mainmenu %}{{ "/directory/"|main_menu }}{% endblock %}
11 {% block sectionmenu %}{{ "/lists/"|section_menu }}{% endblock %}
13 {% block title %}{% trans "Podcast Lists" %}{% endblock %}
15 {% block content %}
16 <h1>{% trans "Podcast Lists" %}</h1>
17 <hr />
19 <table class="list">
20 <tr>
21 <th>{% trans "List Name" %}</th>
22 <th>{% trans "User" %}</th>
23 <th>{% trans "Podcasts" %}</th>
24 <th>{% trans "Download" %}</th>
25 </tr>
26 {% for l in lists %}
27 <tr>
28 <td><a href="{% url list-show l.username l.slug %}">{{ l.title }}</a></td>
29 <td><a href="{% url lists-user l.username %}">{{ l.username }}</a></td>
30 <td class="numeric">{{ l.podcasts|length }}</td>
31 <td>
32 <a href="{% url list-opml l.username l.slug %}">
33 <img src="/media/22x22/opml-icon.png" />
34 </a>
35 </td>
36 </tr>
37 {% endfor %}
38 </table>
40 <div class="pagination">
42 {% if entries.has_previous %}
43 <a href="{% url podcast-lists %}?page={{ entries.previous_page_number }}">«</a>
44 {% endif %}
46 {% for page in page_list %}
47 <span class="page-link">
48 {% if page == "..." %}
49 {{ page }}
50 {% else %}
52 {% if page == entries.number %}
53 <strong>{{ page }}</strong>
54 {% else %}
55 <a href="{% url podcast-lists %}?page={{ page }}">{{ page }}</a>
56 {% endif %}
57 {% endif %}
58 </span>
59 {% endfor %}
61 {% if entries.has_next %}
62 <a href="{% url podcast-lists %}?page={{ entries.next_page_number }}">»</a>
63 {% endif %}
65 </div>
67 {% endblock %}