2dd1c6fa809f9eb8b0b254325a1efe9e27230b0a
[mygpo.git] / mygpo / directory / templates / flattr-podcasts.html
blob2dd1c6fa809f9eb8b0b254325a1efe9e27230b0a
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 <ul class="pagination">
45 {% for page in page_list %}
46 <li>
47 {% if page == "..." %}
48 <span>{{ page }}</span>
49 {% else %}
51 {% if page == current_page %}
52 <a href="{% url "flattr-podcasts" %}?page={{ page }}"><strong>{{ page }}</strong></a>
53 {% else %}
54 <a href="{% url "flattr-podcasts" %}?page={{ page }}">{{ page }}</a>
55 {% endif %}
56 {% endif %}
57 </li>
58 {% endfor %}
59 </ul>
61 {% endblock %}
64 {% block sidebar %}
66 {% if not flattr_auth %}
67 <div class="well">
68 <h4>{% trans "Login to Flattr" %}</h4>
70 <p>{% trans "You have to login to Flattr to ues the Flattr features." %}</p>
71 <a href="{% url "account" %}#flattr" class="btn btn-primary">{% trans "Flattr Settings" %}</a>
72 </div>
73 {% endif %}
75 {% endblock %}