1 {% extends
"base.html" %}
17 {% block mainmenu %}{{
"/podcast/"|main_menu }}{% endblock %}
18 {% block sectionmenu %}
19 {% if podcast.title %}
20 {{
"/podcast/"|section_menu:podcast.title }}
22 {{
"/podcast/"|section_menu:
"Unnamed Podcast" }}
27 {% if episode.url|is_youtube_video %}
28 <script type=
"text/javascript" src=
"/media/js/swfobject.js"></script>
29 <script type=
"text/javascript" src=
"/media/js/json2.js"></script>
30 <script type=
"text/javascript" src=
"/media/js/youtube-handler.js"></script>
32 {% opengraph_episode episode podcast %}
33 {% google_plus_one_head %}
37 {% block title %}{{ episode.title|default:
"Unnamed Episode"|striptags }} - {{ podcast.title|default:
"Unnamed Podcast"|striptags}}{% endblock %}
41 {% if podcast.logo_url %}
42 <div id=
"podcastlogo"><a href=
"{% podcast_link_target podcast %}">{{ podcast|podcast_logo_big }}
</a></div>
45 {{ episode.title|default:
"Unnamed Episode"|striptags }}
46 {% if episode.released %}
47 <small>{{ episode.released|naturalday }}
</small>
50 <small class=
"description">
51 {% trans
"from" %} {% podcast_group_link podcast %}
·
52 {% if not episode.outdated or
"hide-outdated-urls" not in podcast.restrictions %}
53 <a href=
"{{episode.url}}" title=
"{% trans "Download
" %}">
54 <i class=
"icon-download"></i>
57 {% if episode.link and episode.link != episode.url %}
·
58 <a href=
"{{episode.link}}" title=
"{% trans "Website
" %}">
59 <i class=
"icon-external-link"></i>
62 {% if episode.listeners %}
·
63 {{ episode.listeners }} {% trans
"listeners" %}
73 {% if episode.content or episode.description %}
74 <div class=
"description" {% if episode.language or podcast.language %}
lang=
"{% firstof episode.language podcast.language %}"{% endif %}
>
75 {% if episode.content %}
76 {{ episode.content|markdown }}
78 {{ episode.description|markdown }}
83 {% if episode.url|is_youtube_video %}
84 <div id=
"ytapiplayer">
85 You need Flash player
8+ and JavaScript enabled to view this video.
90 {% if episode.url|is_flickr_photo %}
91 {{ episode|embed_flickr_photo }}
94 {% if episode|is_image %}
95 <img src=
"{{ episode.url }}" />
98 {% if user.is_authenticated %}
101 <a class=
"btn" href=
"{% episode_link_target episode podcast "episode-fav
" %}">
102 <i class=
"icon-star"></i> {% trans
"Remove Favorite" %}
105 <a class=
"btn" href=
"{% episode_link_target episode podcast "episode-fav
" %}">
106 <i class=
"icon-star-empty"></i> {% trans
"Favorite" %}
110 {% if played_parts %}
111 <h3>Already played
</h3>
112 {{ played_parts|episode_heatmap_visualization }}
117 <div class=
"pagination">
121 {% episode_link prev podcast %}
125 <a href=
"{% podcast_link_target podcast %}#episodes">{% trans
"..." %}
</a>
129 {% episode_link next podcast %}
140 {% if is_publisher %}
142 <h4>{% trans
"Publisher Pages" %}
</h4>
144 <a class=
"btn" href=
"{% episode_link_target episode podcast "episode-publisher-detail
" %}"><i class=
"icon-wrench"></i> {% trans
"Go" %}
</a>
153 {% google_plus_one_button %}
154 {% fb_like_episode episode podcast %}
157 <a href=
"{% episode_link_target episode podcast "flattr-episode
" %}">
158 <img src=
"https://api.flattr.com/button/flattr-badge-large.png"
159 alt=
"Flattr {{ episode.title|default:"Unnamed Episode
"|striptags }}" />
167 {% if user.is_authenticated or chapters %}
170 <h4>{% trans
"Chapters" %}
</h4>
175 <th>{% trans
"Ad?" %}
</th>
176 <th>{% trans
"Label" %}
</th>
180 {% for chapter in chapters %}
181 <tr {% if chapter.is_own %}
class=
"own-chapter"{% endif %}
>
182 <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>
183 <td>{% if chapter.advertisement %}Yes{% endif %}
</td>
184 <td>{{ chapter.label }}
</strong>
186 {% if chapter.is_own %}
187 <a href=
"{% episode_link_target episode "remove-chapter
" chapter.start chapter.end %}">
188 <img src=
"/media/unsubscribe.png" alt=
"{% trans "Remove
" %}" />
194 {% if user.is_authenticated %}
196 <form class=
"form-inline" action=
"{% episode_link_target episode podcast "add-chapter
" %}" method=
"POST">
199 <input class=
"input-mini" type=
"text" name=
"start" id=
"start" class=
"time" placeholder=
"h:mm:ss"/>
200 <input class=
"input-mini" type=
"text" name=
"end" id=
"end" class=
"time" placeholder=
"h:mm:ss"/>
203 <input type=
"checkbox" name=
"advertisement" />
206 <input class=
"input-mini" type=
"text" name=
"label" />
209 <input class=
"btn" type=
"submit" value=
"{% trans "Add
" %}" />
218 {% if user.is_authenticated or history %}
220 <h4>{% trans
"History" %}
</h4>
223 <th>{% trans
"Time" %}
</th>
224 <th>{% trans
"Action" %}
</th>
225 <th>{% trans
"Device" %}
</th>
229 {% for s in history %}
231 <td><abbr title=
"{{ s.timestamp }}">{{ s.timestamp|naturalday }}
</abbr></td>
232 <td style=
"text-align: center;">{{ s|episode_status_icon }}
</td>
235 <a href=
"{% url "device
" s.device.uid %}">{{ s.device|device_icon }} {{ s.device.name|striptags }}
</a>
238 <td>{% if s.started or s.playmark %}{{s.started|format_time }} - {% endif %}
239 {% if s.playmark %}{{ s.playmark|format_time }}{% endif %}
244 {% if user.is_authenticated %}
246 <form action=
"{% episode_link_target episode podcast "add-episode-action
" %}" method=
"POST">
249 <input class=
"input-mini" type=
"text" id=
"timestamp" name=
"timestamp" placeholder=
"empty = now" /></td>
251 <select class=
"input-mini" name=
"action">
252 {% for action, str in actions %}
253 <option value=
"{{ action }}">{{ str }}
</option>
258 <select class=
"input-mini" name=
"device">
259 <option value=
""></option>
260 {% for device_id, name in devices.items %}
261 <option value=
"{{ device_id }}">{{ name }}
</option>
266 <input class=
"btn" type=
"submit" value=
"{% trans "Add
" %}" />
278 {% block javascript %}
279 <script type=
"text/javascript">
281 {% if episode
.url
|is_youtube_video
%}
282 {% embed_youtube_video podcast episode user
%}
286 {% endblock javascript %}
290 {% comment %}disable ads on episode pages{% endcomment %}