use new style {% url "view" %} template syntax
[mygpo.git] / mygpo / directory / templates / category.html
blob104972a7c6ece65ab1dd5fb8674680816e2b9adb
1 {% extends "base.html" %}
3 {% load url from future %}
4 {% load i18n %}
5 {% load podcasts %}
6 {% load charts %}
7 {% load math %}
8 {% load utils %}
10 {% load menu %}
11 {% block mainmenu %}{{ "/directory/"|main_menu }}{% endblock %}
12 {% block sectionmenu %}{{ "/directory/"|section_menu:category }}{% endblock %}
14 {% block title %}{{ category }}{% endblock %}
16 {% block header %}
17 <h1>{{ category }}</h1>
18 {% endblock %}
21 {% block content %}
23 <table class="list">
24 <tr>
25 <th></th>
26 <th></th>
27 <th></th>
28 </tr>
29 {% for entry in entries %}
30 <tr>
31 <td class="logo">{{ entry|podcast_logo}}</td>
32 <td>{% podcast_group_link entry %}</td>
33 <td class="description">
34 {{ entry.description|truncatewords:15 }}
35 </td>
36 </tr>
37 {% endfor %}
38 </table>
40 <div class="pagination pagination-centered">
41 <ul>
42 {% if entries.has_previous %}
43 <li><a href="{% url "directory" category %}?page={{ entries.previous_page_number }}">«</a></li>
44 {% endif %}
46 {% for page in page_list %}
47 <li>
48 {% if page == "..." %}
49 {{ page }}
50 {% else %}
52 {% if page == entries.number %}
53 <strong>{{ page }}</strong>
54 {% else %}
55 <a href="{% url "directory" category %}?page={{ page }}">{{ page }}</a>
56 {% endif %}
57 {% endif %}
58 </li>
59 {% endfor %}
61 {% if entries.has_next %}
62 <li>
63 <a href="{% url "directory" category %}?page={{ entries.next_page_number }}">»</a>
64 </li>
65 {% endif %}
66 </ul>
67 </div>
69 {% endblock %}