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 <small>{{ episode.released|naturalday }}
</small>
49 <small class=
"description">
50 {% trans
"from" %} {% podcast_group_link podcast %}
·
51 {% if not episode.outdated or
"hide-outdated-urls" not in podcast.restrictions %}
52 <a href=
"{{episode.url}}" title=
"{% trans "Download
" %}">
53 <i class=
"icon-download"></i>
56 {% if episode.link and episode.link != episode.url %}
·
57 <a href=
"{{episode.link}}" title=
"{% trans "Website
" %}">
58 <i class=
"icon-external-link"></i>
61 {% if episode.listeners %}
·
62 {{ episode.listeners }} {% trans
"listeners" %}
72 {% if episode.content or episode.description %}
73 <div class=
"description">
74 {% if episode.content %}
75 {{ episode.content|markdown }}
77 {{ episode.description|markdown }}
82 {% if episode.url|is_youtube_video %}
83 <div id=
"ytapiplayer">
84 You need Flash player
8+ and JavaScript enabled to view this video.
89 {% if episode.url|is_flickr_photo %}
90 {{ episode|embed_flickr_photo }}
93 {% if episode|is_image %}
94 <img src=
"{{ episode.url }}" />
97 {% if user.is_authenticated %}
100 <a class=
"btn" href=
"{% episode_link_target episode podcast "episode-fav
" %}">
101 <i class=
"icon-star"></i> {% trans
"Remove Favorite" %}
104 <a class=
"btn" href=
"{% episode_link_target episode podcast "episode-fav
" %}">
105 <i class=
"icon-star-empty"></i> {% trans
"Favorite" %}
109 {% if played_parts %}
110 <h3>Already played
</h3>
111 {{ played_parts|episode_heatmap_visualization }}
116 <div class=
"pagination">
120 {% episode_link prev podcast %}
124 <a href=
"{% podcast_link_target podcast %}#episodes">{% trans
"..." %}
</a>
128 {% episode_link next podcast %}
143 {% google_plus_one_button %}
144 {% fb_like_episode episode podcast %}
149 {% if user.is_authenticated or chapters %}
152 <h4>{% trans
"Chapters" %}
</h4>
157 <th>{% trans
"Ad?" %}
</th>
158 <th>{% trans
"Label" %}
</th>
162 {% for chapter in chapters %}
163 <tr {% if chapter.is_own %}
class=
"own-chapter"{% endif %}
>
164 <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>
165 <td>{% if chapter.advertisement %}Yes{% endif %}
</td>
166 <td>{{ chapter.label }}
</strong>
168 {% if chapter.is_own %}
169 <a href=
"{% episode_link_target episode "remove-chapter
" chapter.start chapter.end %}">
170 <img src=
"/media/unsubscribe.png" alt=
"{% trans "Remove
" %}" />
176 {% if user.is_authenticated %}
178 <form class=
"form-inline" action=
"{% episode_link_target episode podcast "add-chapter
" %}" method=
"POST">
181 <input type=
"text" name=
"start" id=
"start" class=
"time" placeholder=
"h:mm:ss"/> -
182 <input type=
"text" name=
"end" id=
"end" class=
"time" placeholder=
"h:mm:ss"/>
185 <input type=
"checkbox" name=
"advertisement" />
188 <input class=
"input-small" type=
"text" name=
"label" />
191 <input class=
"btn" type=
"submit" value=
"{% trans "Add
" %}" />
200 {% if user.is_authenticated or history %}
202 <h4>{% trans
"History" %}
</h4>
205 <th>{% trans
"Time" %}
</th>
206 <th>{% trans
"Action" %}
</th>
207 <th>{% trans
"Device" %}
</th>
211 {% for s in history %}
213 <td><abbr title=
"{{ s.timestamp }}">{{ s.timestamp|naturalday }}
</abbr></td>
214 <td style=
"text-align: center;">{{ s|episode_status_icon }}
</td>
217 <a href=
"{% url "device
" s.device.uid %}">{{ s.device|device_icon }} {{ s.device.name|striptags }}
</a>
220 <td>{% if s.started or s.playmark %}{{s.started|format_time }} - {% endif %}
221 {% if s.playmark %}{{ s.playmark|format_time }}{% endif %}
226 {% if user.is_authenticated %}
228 <form action=
"{% episode_link_target episode podcast "add-episode-action
" %}" method=
"POST">
231 <input class=
"input-small" type=
"text" id=
"timestamp" name=
"timestamp" placeholder=
"empty = now" /></td>
233 <select class=
"input-small" name=
"action">
234 {% for action, str in actions %}
235 <option value=
"{{ action }}">{{ str }}
</option>
240 <select class=
"input-small" name=
"device">
241 <option value=
""></option>
242 {% for device_id, name in devices.items %}
243 <option value=
"{{ device_id }}">{{ name }}
</option>
248 <input class=
"btn" type=
"submit" value=
"{% trans "Add
" %}" />
260 {% block javascript %}
261 <script type=
"text/javascript">
263 {% if episode
.url
|is_youtube_video
%}
264 {% embed_youtube_video podcast episode user
%}
268 {% endblock javascript %}
272 {% comment %}disable ads on episode pages{% endcomment %}