1 {% extends
"base.html" %}
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=
"{% static "js/swfobject.js
" %}"></script>
30 <script type=
"text/javascript" src=
"{% static "js/json2.js
" %}"></script>
31 <script type=
"text/javascript" src=
"{% static "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" {% if episode.language or podcast.language %}
lang=
"{% firstof episode.language podcast.language %}"{% endif %}
>
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 %}
141 {% if is_publisher %}
143 <h4>{% trans
"Publisher Pages" %}
</h4>
145 <a class=
"btn" href=
"{% episode_link_target episode podcast "episode-publisher-detail
" %}"><i class=
"icon-wrench"></i> {% trans
"Go" %}
</a>
154 {% google_plus_one_button %}
155 {% fb_like_episode episode podcast %}
158 <a href=
"{% episode_link_target episode podcast "flattr-episode
" %}">
159 <img src=
"https://api.flattr.com/button/flattr-badge-large.png"
160 alt=
"Flattr {{ episode.title|default:"Unnamed Episode
"|striptags }}" />
168 {% if user.is_authenticated or chapters %}
171 <h4>{% trans
"Chapters" %}
</h4>
176 <th>{% trans
"Ad?" %}
</th>
177 <th>{% trans
"Label" %}
</th>
181 {% for chapter in chapters %}
182 <tr {% if chapter.is_own %}
class=
"own-chapter"{% endif %}
>
183 <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>
184 <td>{% if chapter.advertisement %}Yes{% endif %}
</td>
185 <td>{{ chapter.label }}
</strong>
187 {% if chapter.is_own %}
188 <a href=
"{% episode_link_target episode "remove-chapter
" chapter.start chapter.end %}">
189 <img src=
"{% static "unsubscribe.png
" %}" alt=
"{% trans "Remove
" %}" />
195 {% if user.is_authenticated %}
197 <form class=
"form-inline" action=
"{% episode_link_target episode podcast "add-chapter
" %}" method=
"POST">
200 <input class=
"input-mini" type=
"text" name=
"start" id=
"start" class=
"time" placeholder=
"h:mm:ss"/>
201 <input class=
"input-mini" type=
"text" name=
"end" id=
"end" class=
"time" placeholder=
"h:mm:ss"/>
204 <input type=
"checkbox" name=
"advertisement" />
207 <input class=
"input-mini" type=
"text" name=
"label" />
210 <input class=
"btn" type=
"submit" value=
"{% trans "Add
" %}" />
219 {% if user.is_authenticated or history %}
221 <h4>{% trans
"History" %}
</h4>
224 <th>{% trans
"Time" %}
</th>
225 <th>{% trans
"Action" %}
</th>
226 <th>{% trans
"Device" %}
</th>
230 {% for s in history %}
232 <td><abbr title=
"{{ s.timestamp }}">{{ s.timestamp|naturalday }}
</abbr></td>
233 <td style=
"text-align: center;">{{ s|episode_status_icon }}
</td>
236 <a href=
"{% url "device
" s.device.uid %}">{{ s.device|device_icon }} {{ s.device.name|striptags }}
</a>
239 <td>{% if s.started or s.playmark %}{{s.started|format_time }} - {% endif %}
240 {% if s.playmark %}{{ s.playmark|format_time }}{% endif %}
245 {% if user.is_authenticated %}
247 <form action=
"{% episode_link_target episode podcast "add-episode-action
" %}" method=
"POST">
250 <input class=
"input-mini" type=
"text" id=
"timestamp" name=
"timestamp" placeholder=
"empty = now" /></td>
252 <select class=
"input-mini" name=
"action">
253 {% for action, str in actions %}
254 <option value=
"{{ action }}">{{ str }}
</option>
259 <select class=
"input-mini" name=
"device">
260 <option value=
""></option>
261 {% for device_id, name in devices.items %}
262 <option value=
"{{ device_id }}">{{ name }}
</option>
267 <input class=
"btn" type=
"submit" value=
"{% trans "Add
" %}" />
279 {% block javascript %}
280 <script type=
"text/javascript">
282 {% if episode
.url
|is_youtube_video
%}
283 {% embed_youtube_video podcast episode user
%}
287 {% endblock javascript %}
291 {% comment %}disable ads on episode pages{% endcomment %}