fix typo
[mygpo.git] / mygpo / web / templates / episodes.html
blobcca78f4f66a6cae31a62ae55b32ad91cbd1419bc
1 {% extends "podcast-base.html" %}
2 {% load i18n %}
3 {% load humanize %}
4 {% load episodes %}
5 {% load podcasts %}
6 {% load charts %}
8 {% load menu %}
9 {% block mainmenu %}{{ "/podcast/"|main_menu }}{% endblock %}
10 {% block sectionmenu %}
11 {% if podcast.title %}
12 {{ "/podcast/"|section_menu:podcast.title }}
13 {% else %}
14 {{ "/podcast/"|section_menu:"Unnamed Podcast" }}
15 {% endif %}
16 {% endblock %}
18 {% block content %}
20 {% if is_publisher %}
21 <hr />
23 <div class="btn-toolbar">
24 <div class="btn-group">
25 <a class="btn btn-default" href="{% podcast_link_target podcast "podcast-publisher-detail" %}">
26 <i class="icon-wrench"></i>
27 {% trans "Publisher Pages" %}
28 </a>
29 </div>
30 </div>
32 <hr />
33 {% endif %}
35 {% if episodes %}
37 <div class="episodes">
39 {% for episode in episodes %}
40 {% include "components/episode-box.html" with podcast=podcast episode=episode only %}
41 {% endfor %}
43 </div>
45 {% endif %}
47 <ul class="pagination">
48 {% for page in page_list %}
49 <li>
50 {% if page == "..." %}
51 <span>{{ page }}</span>
52 {% else %}
54 {% if page == current_page %}
55 <a href="{% podcast_link_target podcast "podcast-all-episodes" %}?page={{ page }}"><strong>{{ page }}</strong></a>
56 {% else %}
57 <a href="{% podcast_link_target podcast "podcast-all-episodes" %}?page={{ page }}">{{ page }}</a>
58 {% endif %}
59 {% endif %}
60 </li>
61 {% endfor %}
62 </ul>
65 {% endblock %}