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" {% if podcast.language %}
lang=
"{{ podcast.language }}"{% endif %}
>
77 {{ podcast.description|markdown }}
88 <div class=
"first-episode">
90 <h2>{{ episode.title }}
<small>{{ episode.released|naturalday }}
</small></h2>
91 <div class=
"description" {% if episode.language or podcast.language %}
lang=
"{% firstof episode.language podcast.language %}"{% endif %}
>
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 %}
126 {% if not podcast.episode_count or podcast.episode_count
> 20 %}
130 <a href=
"{% podcast_link_target podcast "podcast-all-episodes
" %}?page=2">{% trans
"All Episodes" %}
</a>
146 <h4>{% trans
"Subscriptions" %}
</h4>
147 {% if not user.is_authenticated %}
148 <div class=
"subscribe">
149 <a href=
"{% podcast_link_target podcast "subscribe
" %}">
150 <img src=
"/media/subscribe.png" style=
"vertical-align: middle;" alt=
""/>
151 {% trans
"Subscribe to this podcast" %}
156 {% if devices or can_subscribe %}
158 {% for device in devices %}
162 {{ device|device_icon }}
163 <a href=
"{% url "device
" device.uid %}">{{ device.name|striptags }}
</a>
166 <td style=
"text-align: center;">
167 <form class=
"form-inline" method=
"post" action=
"{% podcast_link_target podcast "unsubscribe
" device.uid %}?return_to={% podcast_link_target podcast %}">
169 <button class=
"btn btn-danger btn-small" type=
"submit">
170 <i class=
"icon-remove"></i>
176 {% if can_subscribe %}
178 <form class=
"form-inline" action=
"{% podcast_link_target podcast "subscribe
" %}" method=
"post">
181 <select name=
"targets" id=
"id_targets">
182 {% for device in subscribe_targets %}
183 <option value=
"{{ device.uid }}">{{ device.name }}
</option>
188 <button class=
"btn btn-success btn-small" type=
"submit">
189 <i class=
"icon-ok"></i>
204 {% for tag in tags %}
207 <span class=
"own">{{ tag.tag }}
<a class=
"remove" href=
"{% podcast_link_target podcast "remove-tag
" %}?tag={{ tag.tag }}">X
</a></span>
209 <span class=
"other">{{ tag.tag }}
</span>
211 {% if not forloop.last %}
212 <span class=
"seperator">,
</span>
217 {% if user.is_authenticated %}
218 <form class=
"form-inline" action=
"{% podcast_link_target podcast "add-tag
" %}">
219 <div class=
"input-prepend btn-append">
220 <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">
221 <i class=
"icon-plus"></i>
229 <h4>{% trans
"Share" %}
</h4>
231 {% google_plus_one_button %}
232 {{ podcast|fb_like_podcast }}
234 <a href=
"{% podcast_link_target podcast "podcast-flattr
" %}">
235 <img src=
"https://api.flattr.com/button/flattr-badge-large.png"
236 alt=
"Flattr {{ podcast.title|default:"Unnamed Podcast
"|striptags }}" />
245 <h4>{% trans
"Subscription History" %}
</h4>
247 {% for s in history %}
249 <td><abbr title=
"{{ s.timestamp }}">{{ s.timestamp|naturalday }}
</abbr></td>
250 <td>{{ s|podcast_status_icon }}
</td>
253 <a href=
"{% url "device
" s.device.uid %}">{{ s.device|device_icon }} {{ s.device.name|striptags }}
</a>
266 {% comment %}disable ads on podcast pages{% endcomment %}