fix pagination links
[mygpo.git] / mygpo / directory / templates / flattr-podcasts.html
bloba681135b601407d07040320a306489536be5d4b3
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/+flattr"|main_menu }}{% endblock %}
11 {% block sectionmenu %}{{ "/directory/+flattr"|section_menu }}{% endblock %}
13 {% block title %}{% trans "Podcasts using Flattr" %}{% endblock %}
15 {% block header %}
16 <h1>{% trans "Podcasts using Flattr" %}</h1>
17 {% endblock %}
19 {% block content %}
20 <p>{% blocktrans %}These podcasts use <a href="https://flattr.com/">Flattr</a>. You can support them by flattring their episodes.{% endblocktrans %}</p>
21 <table class="list">
22 <tr>
23 <th></th>
24 <th>{% trans "Podcast" %}</th>
25 <th>{% trans "Subscribers" %}</th>
26 </tr>
27 {% for podcast in podcasts %}
28 <tr>
29 <td class="logo">{{ podcast|podcast_logo }}</td>
30 <td>
31 {% podcast_group_link podcast %}
32 </td>
33 <td>{% vertical_bar podcast.subscriber_count max_subscribers %}</td>
34 </tr>
35 {% empty %}
36 <tr>
37 <td colspan="5">
38 {% trans "Currently not available" %}
39 </td>
40 </tr>
41 {% endfor %}
42 </table>
44 <div class="pagination pagination-centered">
45 <ul>
46 {% for page in page_list %}
47 <li>
48 {% if page == "..." %}
49 <span>{{ page }}</span>
50 {% else %}
52 {% if page == current_page %}
53 <a href="{% url "flattr-podcasts" %}?page={{ page }}"><strong>{{ page }}</strong></a>
54 {% else %}
55 <a href="{% url "flattr-podcasts" %}?page={{ page }}">{{ page }}</a>
56 {% endif %}
57 {% endif %}
58 </li>
59 {% endfor %}
60 </ul>
61 </div>
63 {% endblock %}
66 {% block sidebar %}
68 {% if not flattr_auth %}
69 <div class="well">
70 <h4>{% trans "Login to Flattr" %}</h4>
72 <p>{% trans "You have to login to Flattr to ues the Flattr features." %}</p>
73 <a href="{% url "account" %}#flattr" class="btn btn-primary">{% trans "Flattr Settings" %}</a>
74 </div>
75 {% endif %}
77 {% endblock %}