1 {% extends
"base.html" %}
2 {% load url from future %}
18 {% block mainmenu %}{{
"/podcast/"|main_menu }}{% endblock %}
19 {% block sectionmenu %}
20 {% if podcast.title %}
21 {{
"/podcast/"|section_menu:podcast.title }}
23 {{
"/podcast/"|section_menu:
"Unnamed Podcast" }}
28 {% if episode.url|is_youtube_video %}
29 <script type=
"text/javascript" src=
"/media/js/swfobject.js"></script>
30 <script type=
"text/javascript" src=
"/media/js/json2.js"></script>
31 <script type=
"text/javascript" src=
"/media/js/youtube-handler.js"></script>
33 {% opengraph_episode episode podcast %}
34 {% google_plus_one_head %}
38 {% block title %}{{ episode.title|default:
"Unnamed Episode"|striptags }} - {{ podcast.title|default:
"Unnamed Podcast"|striptags}}{% endblock %}
42 {% if podcast.logo_url %}
43 <div id=
"podcastlogo"><a href=
"{% podcast_link_target podcast %}">{{ podcast|podcast_logo_big }}
</a></div>
46 {{ episode.title|default:
"Unnamed Episode"|striptags }}
47 {% if episode.released %}
48 <small>{{ episode.released|naturalday }}
</small>
51 <small class=
"description">
52 {% trans
"from" %} {% podcast_group_link podcast %}
·
53 {% if not episode.outdated or
"hide-outdated-urls" not in podcast.restrictions %}
54 <a href=
"{{episode.url}}" title=
"{% trans "Download
" %}">
55 <i class=
"icon-download"></i>
58 {% if episode.link and episode.link != episode.url %}
·
59 <a href=
"{{episode.link}}" title=
"{% trans "Website
" %}">
60 <i class=
"icon-external-link"></i>
63 {% if episode.listeners %}
·
64 {{ episode.listeners }} {% trans
"listeners" %}
74 {% if episode.content or episode.description %}
75 <div class=
"description">
76 {% if episode.content %}
77 {{ episode.content|markdown }}
79 {{ episode.description|markdown }}
84 {% if episode.url|is_youtube_video %}
85 <div id=
"ytapiplayer">
86 You need Flash player
8+ and JavaScript enabled to view this video.
91 {% if episode.url|is_flickr_photo %}
92 {{ episode|embed_flickr_photo }}
95 {% if episode|is_image %}
96 <img src=
"{{ episode.url }}" />
99 {% if user.is_authenticated %}
102 <a class=
"btn" href=
"{% episode_link_target episode podcast "episode-fav
" %}">
103 <i class=
"icon-star"></i> {% trans
"Remove Favorite" %}
106 <a class=
"btn" href=
"{% episode_link_target episode podcast "episode-fav
" %}">
107 <i class=
"icon-star-empty"></i> {% trans
"Favorite" %}
111 {% if played_parts %}
112 <h3>Already played
</h3>
113 {{ played_parts|episode_heatmap_visualization }}
118 <div class=
"pagination">
122 {% episode_link prev podcast %}
126 <a href=
"{% podcast_link_target podcast %}#episodes">{% trans
"..." %}
</a>
130 {% episode_link next podcast %}
145 {% google_plus_one_button %}
146 {% fb_like_episode episode podcast %}
148 {% if episode.flattr_url %}
149 <a href=
"{% episode_link_target episode podcast "flattr-episode
" %}">
150 <img src=
"https://api.flattr.com/button/flattr-badge-large.png"
151 alt=
"Flattr {{ episode.title|default:"Unnamed Episode
"|striptags }}" />
159 {% if user.is_authenticated or chapters %}
162 <h4>{% trans
"Chapters" %}
</h4>
167 <th>{% trans
"Ad?" %}
</th>
168 <th>{% trans
"Label" %}
</th>
172 {% for chapter in chapters %}
173 <tr {% if chapter.is_own %}
class=
"own-chapter"{% endif %}
>
174 <td>{{ chapter.start|sec_to_time|time:
"H:i:s" }}{% if chapter.start != chapter.end %} - {{ chapter.end|sec_to_time|time:
"H:i:s" }}{% endif %}
</td>
175 <td>{% if chapter.advertisement %}Yes{% endif %}
</td>
176 <td>{{ chapter.label }}
</strong>
178 {% if chapter.is_own %}
179 <a href=
"{% episode_link_target episode "remove-chapter
" chapter.start chapter.end %}">
180 <img src=
"/media/unsubscribe.png" alt=
"{% trans "Remove
" %}" />
186 {% if user.is_authenticated %}
188 <form class=
"form-inline" action=
"{% episode_link_target episode podcast "add-chapter
" %}" method=
"POST">
191 <input class=
"input-mini" type=
"text" name=
"start" id=
"start" class=
"time" placeholder=
"h:mm:ss"/>
192 <input class=
"input-mini" type=
"text" name=
"end" id=
"end" class=
"time" placeholder=
"h:mm:ss"/>
195 <input type=
"checkbox" name=
"advertisement" />
198 <input class=
"input-mini" type=
"text" name=
"label" />
201 <input class=
"btn" type=
"submit" value=
"{% trans "Add
" %}" />
210 {% if user.is_authenticated or history %}
212 <h4>{% trans
"History" %}
</h4>
215 <th>{% trans
"Time" %}
</th>
216 <th>{% trans
"Action" %}
</th>
217 <th>{% trans
"Device" %}
</th>
221 {% for s in history %}
223 <td><abbr title=
"{{ s.timestamp }}">{{ s.timestamp|naturalday }}
</abbr></td>
224 <td style=
"text-align: center;">{{ s|episode_status_icon }}
</td>
227 <a href=
"{% url "device
" s.device.uid %}">{{ s.device|device_icon }} {{ s.device.name|striptags }}
</a>
230 <td>{% if s.started or s.playmark %}{{s.started|format_time }} - {% endif %}
231 {% if s.playmark %}{{ s.playmark|format_time }}{% endif %}
236 {% if user.is_authenticated %}
238 <form action=
"{% episode_link_target episode podcast "add-episode-action
" %}" method=
"POST">
241 <input class=
"input-mini" type=
"text" id=
"timestamp" name=
"timestamp" placeholder=
"empty = now" /></td>
243 <select class=
"input-mini" name=
"action">
244 {% for action, str in actions %}
245 <option value=
"{{ action }}">{{ str }}
</option>
250 <select class=
"input-mini" name=
"device">
251 <option value=
""></option>
252 {% for device_id, name in devices.items %}
253 <option value=
"{{ device_id }}">{{ name }}
</option>
258 <input class=
"btn" type=
"submit" value=
"{% trans "Add
" %}" />
270 {% block javascript %}
271 <script type=
"text/javascript">
273 {% if episode
.url
|is_youtube_video
%}
274 {% embed_youtube_video podcast episode user
%}
278 {% endblock javascript %}
282 {% comment %}disable ads on episode pages{% endcomment %}