fix pagination links
[mygpo.git] / mygpo / directory / templates / podcast_lists.html
bloba2352cc2f821b1dd8c2125ea17b71b96554c17e4
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 header %}
16 <h1>{% trans "Podcast Lists" %}</h1>
17 {% endblock %}
19 {% block content %}
20 <table class="list">
21 <tr>
22 <th>{% trans "List Name" %}</th>
23 <th>{% trans "User" %}</th>
24 <th>{% trans "Podcasts" %}</th>
25 <th>{% trans "Download" %}</th>
26 </tr>
27 {% for l in lists %}
28 {% if l.username %}
29 <tr>
30 <td><a href="{% url "list-show" l.username l.slug %}">{{ l.title }}</a></td>
31 <td><a href="{% url "user" l.username %}">{{ l.username }}</a></td>
32 <td class="numeric">{{ l.podcasts|length }}</td>
33 <td>
34 <a class="btn btn-small" href="{% url "list-opml" l.username l.slug %}">
35 <i class="icon-download"></i>
36 </a>
37 </td>
38 </tr>
39 {% endif %}
40 {% endfor %}
41 </table>
43 <div class="pagination pagination-centered">
44 <ul>
46 {% if entries.has_previous %}
47 <li>
48 <a href="{% url "podcast-lists" %}?page={{ entries.previous_page_number }}">«</a>
49 </li>
50 {% endif %}
52 {% for page in page_list %}
53 <li>
54 {% if page == "..." %}
55 <span>{{ page }}</span>
56 {% else %}
58 {% if page == entries.number %}
59 <strong>{{ page }}</strong>
60 {% else %}
61 <a href="{% url "podcast-lists" %}?page={{ page }}">{{ page }}</a>
62 {% endif %}
63 {% endif %}
64 </li>
65 {% endfor %}
67 {% if entries.has_next %}
68 <li>
69 <a href="{% url "podcast-lists" %}?page={{ entries.next_page_number }}">»</a>
70 </li>
71 {% endif %}
72 </ul>
73 </div>
75 {% endblock %}
78 {% block sidebar %}
79 <div class="well">
80 <h4>{% trans "Know Some Great Podcasts?" %}</h4>
81 <p>{% trans "Create a list of podcasts about a topic you like" %}</p>
82 <a class="btn btn-primary" href="{% url "lists-overview" %}">Go</a>
83 </div>
84 {% endblock %}