1 {% extends
"base.html" %}
2 {% load url from future %}
14 {% block mainmenu %}{{
"/podcast/"|main_menu }}{% endblock %}
15 {% block sectionmenu %}
16 {% if podcast.title %}
17 {{
"/podcast/"|section_menu:podcast.title }}
19 {{
"/podcast/"|section_menu:
"Unnamed Podcast" }}
24 {{ podcast|opengraph_podcast }}
25 {% google_plus_one_head %}
28 {% block title %}{{ podcast.title|default:
"Unnamed Podcast"|striptags }}{% endblock %}
32 {% if podcast.logo_url %}
33 <div id=
"podcastlogo">{{ podcast|podcast_logo_big }}
</div>
37 {% if podcast.title %}
38 {{ podcast.title|striptags }}
40 {% trans
"Unnamed Podcast" %}
44 <small class=
"description">
46 <a href=
"{{podcast.url}}">
49 {% if podcast.link %},
50 <a href=
"{{podcast.link}}">{% trans
"website" %}
</a>
52 {% blocktrans with podcast.subscriber_count as subscriber_count and podcast.listener_count as listener_count %}{{subscriber_count}} subscribers, {{listener_count}} listeners{% endblocktrans %}
55 {% if related_podcasts %}
56 <div class=
"related-podcasts">
57 <strong>{% trans
"Also available" %}
</strong>
58 {% for p in related_podcasts %}
59 {% podcast_group_link p p.group_member_name %}
64 {% if podcast.description %}
65 <div class=
"description">{{ podcast.description|markdown }}
</div>
75 <div class=
"first-episode">
77 <h2>{{ episode.title }}
<small>{{ episode.released|naturalday }}
</small></h2>
78 <div class=
"description">
79 {{ episode.description|default:
""|truncatewords:
"100"|markdown }}
81 <a href=
"{% episode_link_target episode podcast %}">more...
</a>
88 <h3>{% trans
"Older Episodes" %}
</h3>
89 <table class=
"list episode_list" id=
"episodes">
92 <th>{% trans
"Title" %}
</th>
93 <th>{% trans
"Released" %}
</th>
94 <th>{% trans
"Listeners" %}
</th>
97 {% for episode in episodes %}
99 <td>{{ episode.action|episode_status_icon }}
</td>
101 <div class=
"title">{% episode_link episode podcast %}
</div>
102 <div class=
"description short">{{ episode.description|default:
""|truncatewords:
"20"|markdown|striptags }}
</div>
104 <td>{{ episode.released|default:
""|date:
"Y-m-d" }}
</td>
106 {% if episode.listeners %}
107 {% vertical_bar episode.listeners max_listeners %}
116 <a href=
"{% podcast_link_target podcast "podcast-all-episodes
" %}">{% trans
"All Episodes" %}
</a>
131 <h4>{% trans
"Subscriptions" %}
</h4>
132 {% if not user.is_authenticated %}
133 <div class=
"subscribe">
134 <a href=
"{% podcast_link_target podcast "subscribe
" %}">
135 <img src=
"/media/subscribe.png" style=
"vertical-align: middle;" alt=
""/>
136 {% trans
"Subscribe to this podcast" %}
141 {% if devices or can_subscribe %}
143 {% for device in devices %}
146 {{ device|device_icon }}
147 <a href=
"{% url "device
" device.uid %}">{{ device.name|striptags }}
</a>
149 <td style=
"text-align: center;">
150 <form class=
"form-inline" method=
"post" action=
"{% podcast_link_target podcast "unsubscribe
" device.uid %}?return_to={% podcast_link_target podcast %}">
152 <button class=
"btn btn-danger btn-small" type=
"submit">
153 <i class=
"icon-remove"></i>
159 {% if can_subscribe %}
161 <form class=
"form-inline" action=
"{% podcast_link_target podcast "subscribe
" %}" method=
"post">
164 <select name=
"targets" id=
"id_targets">
165 {% for device in subscribe_targets %}
166 <option value=
"{{ device.uid }}">{{ device.name }}
</option>
171 <button class=
"btn btn-success btn-small" type=
"submit">
172 <i class=
"icon-ok"></i>
187 {% for tag in tags %}
190 <span class=
"own">{{ tag.tag }}
<a class=
"remove" href=
"{% podcast_link_target podcast "remove-tag
" %}?tag={{ tag.tag }}">X
</a></span>
192 <span class=
"other">{{ tag.tag }}
</span>
194 {% if not forloop.last %}
195 <span class=
"seperator">,
</span>
200 {% if user.is_authenticated %}
201 <form class=
"form-inline" action=
"{% podcast_link_target podcast "add-tag
" %}">
202 <div class=
"input-prepend btn-append">
203 <span class=
"add-on"><i class=
"icon-tag"></i></span><input class=
"input-small" type=
"text" name=
"tag" /><button class=
"btn btn-success" type=
"submit">
204 <i class=
"icon-plus"></i>
212 <h4>{% trans
"Share" %}
</h4>
214 {% google_plus_one_button %}
215 {{ podcast|fb_like_podcast }}
222 <h4>{% trans
"Subscription History" %}
</h4>
224 {% for s in history %}
226 <td><abbr title=
"{{ s.timestamp }}">{{ s.timestamp|naturalday }}
</abbr></td>
227 <td>{{ s|podcast_status_icon }}
</td>
229 <a href=
"{% url "device
" s.device.uid %}">{{ s.device|device_icon }} {{ s.device.name|striptags }}
</a>
241 {% comment %}disable ads on podcast pages{% endcomment %}