Merge pull request #793 from gpodder/remove-advertise
[mygpo.git] / mygpo / directory / templates / podcast_lists.html
blobd72bf539be3d50bccb99fd85e35a56a76a0103e7
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 <tr>
29 <td><a href="{% url "list-show" l.user.username l.slug %}">{{ l.title }}</a></td>
30 <td><a href="{% url "user" l.user.username %}">{{ l.user.username }}</a></td>
31 <td class="numeric">{{ l.entries.count }}</td>
32 <td>
33 <a class="btn btn-default btn-sm" href="{% url "list-opml" l.user.username l.slug %}">
34 <i class="icon-download"></i>
35 </a>
36 </td>
37 </tr>
38 {% endfor %}
39 </table>
41 <ul class="pagination">
43 {% if entries.has_previous %}
44 <li>
45 <a href="{% url "podcast-lists" %}?page={{ entries.previous_page_number }}">«</a>
46 </li>
47 {% endif %}
49 {% for page in page_list %}
50 <li>
51 {% if page == "..." %}
52 <span>{{ page }}</span>
53 {% else %}
55 {% if page == entries.number %}
56 <strong>{{ page }}</strong>
57 {% else %}
58 <a href="{% url "podcast-lists" %}?page={{ page }}">{{ page }}</a>
59 {% endif %}
60 {% endif %}
61 </li>
62 {% endfor %}
64 {% if entries.has_next %}
65 <li>
66 <a href="{% url "podcast-lists" %}?page={{ entries.next_page_number }}">»</a>
67 </li>
68 {% endif %}
69 </ul>
71 {% endblock %}
74 {% block sidebar %}
75 <div class="well">
76 <h4>{% trans "Know Some Great Podcasts?" %}</h4>
77 <p>{% trans "Create a list of podcasts about a topic you like" %}</p>
78 <a class="btn btn-primary" href="{% url "lists-overview" %}">Go</a>
79 </div>
80 {% endblock %}