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 <small>{{ episode.released|naturalday }}
</small>
48 <small class=
"description">
49 {% trans
"from" %} {% podcast_group_link podcast %},
51 {% if not episode.outdated or
"hide-outdated-urls" not in podcast.restrictions %}
52 <a href=
"{{episode.url}}">{% trans
"download" %}
</a>
54 {% if episode.link and episode.link != episode.url %}
55 <a href=
"{{episode.link}}">{% trans
"website" %}
</a>
57 {% trans
"stats:" %} {% blocktrans with episode.listener_count as listener_count %}{{listener_count}} listeners{% endblocktrans %}
66 {% if episode.content or episode.description %}
67 <div class=
"description">{{ episode.content|default:episode.description|markdown }}
</div>
70 {% if episode.url|is_youtube_video %}
71 <div id=
"ytapiplayer">
72 You need Flash player
8+ and JavaScript enabled to view this video.
77 {% if episode.url|is_flickr_photo %}
78 {{ episode|embed_flickr_photo }}
81 {% if episode|is_image %}
82 <img src=
"{{ episode.url }}" />
85 {% if user.is_authenticated %}
88 <a class=
"btn" href=
"{% episode_link_target episode podcast "episode-fav
" %}">
89 <i class=
"icon-star"></i> {% trans
"Remove Favorite" %}
92 <a class=
"btn" href=
"{% episode_link_target episode podcast "episode-fav
" %}">
93 <i class=
"icon-star-empty"></i> {% trans
"Favorite" %}
98 <h3>Already played
</h3>
99 {{ played_parts|episode_heatmap_visualization }}
104 <div class=
"pagination">
108 {% episode_link prev podcast %}
112 <a href=
"{% podcast_link_target podcast %}#episodes">{% trans
"Episode-List" %}
</a>
116 {% episode_link next podcast %}
131 {% google_plus_one_button %}
132 {% fb_like_episode episode podcast %}
137 {% if user.is_authenticated or chapters %}
140 <h4>{% trans
"Chapters" %}
</h4>
145 <th>{% trans
"Ad?" %}
</th>
146 <th>{% trans
"Label" %}
</th>
150 {% for chapter in chapters %}
151 <tr {% if chapter.is_own %}
class=
"own-chapter"{% endif %}
>
152 <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>
153 <td>{% if chapter.advertisement %}Yes{% endif %}
</td>
154 <td>{{ chapter.label }}
</strong>
156 {% if chapter.is_own %}
157 <a href=
"{% episode_link_target episode "remove-chapter
" chapter.start chapter.end %}">
158 <img src=
"/media/unsubscribe.png" alt=
"{% trans "Remove
" %}" />
164 {% if user.is_authenticated %}
166 <form class=
"form-inline" action=
"{% episode_link_target episode podcast "add-chapter
" %}" method=
"POST">
169 <input type=
"text" name=
"start" id=
"start" class=
"time" placeholder=
"h:mm:ss"/> -
170 <input type=
"text" name=
"end" id=
"end" class=
"time" placeholder=
"h:mm:ss"/>
173 <input type=
"checkbox" name=
"advertisement" />
176 <input class=
"input-small" type=
"text" name=
"label" />
179 <input class=
"btn" type=
"submit" value=
"{% trans "Add
" %}" />
188 {% if user.is_authenticated or history %}
190 <h4>{% trans
"History" %}
</h4>
193 <th>{% trans
"Time" %}
</th>
194 <th>{% trans
"Action" %}
</th>
195 <th>{% trans
"Device" %}
</th>
199 {% for s in history %}
201 <td><abbr title=
"{{ s.timestamp }}">{{ s.timestamp|naturalday }}
</abbr></td>
202 <td style=
"text-align: center;">{{ s|episode_status_icon }}
</td>
205 <a href=
"{% url device s.device.uid %}">{{ s.device|device_icon }} {{ s.device.name|striptags }}
</a>
208 <td>{% if s.started or s.playmark %}{{s.started|format_time }} - {% endif %}
209 {% if s.playmark %}{{ s.playmark|format_time }}{% endif %}
214 {% if user.is_authenticated %}
216 <form action=
"{% episode_link_target episode podcast "add-episode-action
" %}" method=
"POST">
219 <input class=
"input-small" type=
"text" id=
"timestamp" name=
"timestamp" placeholder=
"empty = now" /></td>
221 <select class=
"input-small" name=
"action">
222 {% for action, str in actions %}
223 <option value=
"{{ action }}">{{ str }}
</option>
228 <select class=
"input-small" name=
"device">
229 <option value=
""></option>
230 {% for device_id, name in devices.items %}
231 <option value=
"{{ device_id }}">{{ name }}
</option>
236 <input class=
"btn" type=
"submit" value=
"{% trans "Add
" %}" />
248 {% block javascript %}
249 <script type=
"text/javascript">
251 {% if episode
.url
|is_youtube_video
%}
252 {% embed_youtube_video podcast episode user
%}
256 {% endblock javascript %}
260 {% comment %}disable ads on episode pages{% endcomment %}