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">
45 {% if podcast.author %}{% trans
"by" %}
46 {{ podcast.author|striptags }}
48 {% if podcast.twitter %}
49 <a href=
"https://twitter.com/{{ podcast.twitter|striptags }}"><i class=
"icon-twitter"></i></a>
51 <a href=
"{{podcast.url}}" title=
"{% trans "Feed
" %}">
52 <i class=
"icon-rss"></i>
54 {% if podcast.link %}
·
55 <a href=
"{{podcast.link}}" title=
"{% trans "Website
" %}">
56 <i class=
"icon-external-link"></i>
59 {% if podcast.subscriber_count %}
·
60 {{ podcast.subscriber_count }} {% trans
"subscribers" %}
64 {% if related_podcasts %}
65 <div class=
"related-podcasts">
66 <strong>{% trans
"Also available" %}
</strong>
67 {% for p in related_podcasts %}
68 {% if p.group_member_name != podcast.group_member_name %}
69 {% podcast_group_link p p.group_member_name %}
75 {% if podcast.description %}
76 <div class=
"description">
77 {{ podcast.description|markdown }}
88 <div class=
"first-episode">
90 <h2>{{ episode.title }}
<small>{{ episode.released|naturalday }}
</small></h2>
91 <div class=
"description">
92 {{ episode.description|default:
""|truncatewords:
"100"|markdown }}
94 <a href=
"{% episode_link_target episode podcast %}">more...
</a>
101 <h3>{% trans
"Older Episodes" %}
</h3>
102 <table class=
"list episode_list" id=
"episodes">
105 <th>{% trans
"Title" %}
</th>
106 <th>{% trans
"Released" %}
</th>
107 <th>{% trans
"Listeners" %}
</th>
110 {% for episode in episodes %}
112 <td>{{ episode.action|episode_status_icon }}
</td>
114 <div class=
"title">{% episode_link episode podcast %}
</div>
115 <div class=
"description short">{{ episode.description|default:
""|truncatewords:
"20"|markdown|striptags }}
</div>
117 <td>{{ episode.released|default:
""|date:
"Y-m-d" }}
</td>
119 {% if episode.listeners %}
120 {% vertical_bar episode.listeners max_listeners %}
129 <a href=
"{% podcast_link_target podcast "podcast-all-episodes
" %}">{% trans
"All Episodes" %}
</a>
144 <h4>{% trans
"Subscriptions" %}
</h4>
145 {% if not user.is_authenticated %}
146 <div class=
"subscribe">
147 <a href=
"{% podcast_link_target podcast "subscribe
" %}">
148 <img src=
"/media/subscribe.png" style=
"vertical-align: middle;" alt=
""/>
149 {% trans
"Subscribe to this podcast" %}
154 {% if devices or can_subscribe %}
156 {% for device in devices %}
159 {{ device|device_icon }}
160 <a href=
"{% url "device
" device.uid %}">{{ device.name|striptags }}
</a>
162 <td style=
"text-align: center;">
163 <form class=
"form-inline" method=
"post" action=
"{% podcast_link_target podcast "unsubscribe
" device.uid %}?return_to={% podcast_link_target podcast %}">
165 <button class=
"btn btn-danger btn-small" type=
"submit">
166 <i class=
"icon-remove"></i>
172 {% if can_subscribe %}
174 <form class=
"form-inline" action=
"{% podcast_link_target podcast "subscribe
" %}" method=
"post">
177 <select name=
"targets" id=
"id_targets">
178 {% for device in subscribe_targets %}
179 <option value=
"{{ device.uid }}">{{ device.name }}
</option>
184 <button class=
"btn btn-success btn-small" type=
"submit">
185 <i class=
"icon-ok"></i>
200 {% for tag in tags %}
203 <span class=
"own">{{ tag.tag }}
<a class=
"remove" href=
"{% podcast_link_target podcast "remove-tag
" %}?tag={{ tag.tag }}">X
</a></span>
205 <span class=
"other">{{ tag.tag }}
</span>
207 {% if not forloop.last %}
208 <span class=
"seperator">,
</span>
213 {% if user.is_authenticated %}
214 <form class=
"form-inline" action=
"{% podcast_link_target podcast "add-tag
" %}">
215 <div class=
"input-prepend btn-append">
216 <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">
217 <i class=
"icon-plus"></i>
225 <h4>{% trans
"Share" %}
</h4>
227 {% google_plus_one_button %}
228 {{ podcast|fb_like_podcast }}
229 {% if podcast.flattr_url %}
230 <a href=
"{{ podcast.flattr_url }}">
231 <img src=
"https://api.flattr.com/button/flattr-badge-large.png"
232 alt=
"Flattr {{ podcast.title|default:"Unnamed Podcast
"|striptags }}" />
241 <h4>{% trans
"Subscription History" %}
</h4>
243 {% for s in history %}
245 <td><abbr title=
"{{ s.timestamp }}">{{ s.timestamp|naturalday }}
</abbr></td>
246 <td>{{ s|podcast_status_icon }}
</td>
248 <a href=
"{% url "device
" s.device.uid %}">{{ s.device|device_icon }} {{ s.device.name|striptags }}
</a>
260 {% comment %}disable ads on podcast pages{% endcomment %}