94ea39d1ab628534e915ca8a428b3872f7f7960f
[mygpo.git] / mygpo / directory / templates / podcast_lists.html
blob94ea39d1ab628534e915ca8a428b3872f7f7960f
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 <a href="#" class="disabled">
56 {{ page }}
57 </a>
58 {% else %}
60 {% if page == entries.number %}
61 <strong>{{ page }}</strong>
62 {% else %}
63 <a href="{% url "podcast-lists" %}?page={{ page }}">{{ page }}</a>
64 {% endif %}
65 {% endif %}
66 </li>
67 {% endfor %}
69 {% if entries.has_next %}
70 <li>
71 <a href="{% url "podcast-lists" %}?page={{ entries.next_page_number }}">»</a>
72 </li>
73 {% endif %}
74 </ul>
75 </div>
77 {% endblock %}
80 {% block sidebar %}
81 <div class="well">
82 <h4>{% trans "Know Some Great Podcasts?" %}</h4>
83 <p>{% trans "Create a list of podcasts about a topic you like" %}</p>
84 <a class="btn btn-primary" href="{% url "lists-overview" %}">Go</a>
85 </div>
86 {% endblock %}