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 %},
52 {% if not episode.outdated or
"hide-outdated-urls" not in podcast.restrictions %}
53 <a href=
"{{episode.url}}">{% trans
"download" %}
</a>
55 {% if episode.link and episode.link != episode.url %}
56 <a href=
"{{episode.link}}">{% trans
"website" %}
</a>
58 {% trans
"stats:" %} {% blocktrans with episode.listener_count as listener_count %}{{listener_count}} listeners{% endblocktrans %}
67 {% if episode.content or episode.description %}
68 <div class=
"description">
69 {% if episode.content %}
70 {{ episode.content|markdown }}
72 {{ episode.description|markdown }}
77 {% if episode.url|is_youtube_video %}
78 <div id=
"ytapiplayer">
79 You need Flash player
8+ and JavaScript enabled to view this video.
84 {% if episode.url|is_flickr_photo %}
85 {{ episode|embed_flickr_photo }}
88 {% if episode|is_image %}
89 <img src=
"{{ episode.url }}" />
92 {% if user.is_authenticated %}
95 <a class=
"btn" href=
"{% episode_link_target episode podcast "episode-fav
" %}">
96 <i class=
"icon-star"></i> {% trans
"Remove Favorite" %}
99 <a class=
"btn" href=
"{% episode_link_target episode podcast "episode-fav
" %}">
100 <i class=
"icon-star-empty"></i> {% trans
"Favorite" %}
104 {% if played_parts %}
105 <h3>Already played
</h3>
106 {{ played_parts|episode_heatmap_visualization }}
111 <div class=
"pagination">
115 {% episode_link prev podcast %}
119 <a href=
"{% podcast_link_target podcast %}#episodes">{% trans
"Episode-List" %}
</a>
123 {% episode_link next podcast %}
138 {% google_plus_one_button %}
139 {% fb_like_episode episode podcast %}
144 {% if user.is_authenticated or chapters %}
147 <h4>{% trans
"Chapters" %}
</h4>
152 <th>{% trans
"Ad?" %}
</th>
153 <th>{% trans
"Label" %}
</th>
157 {% for chapter in chapters %}
158 <tr {% if chapter.is_own %}
class=
"own-chapter"{% endif %}
>
159 <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>
160 <td>{% if chapter.advertisement %}Yes{% endif %}
</td>
161 <td>{{ chapter.label }}
</strong>
163 {% if chapter.is_own %}
164 <a href=
"{% episode_link_target episode "remove-chapter
" chapter.start chapter.end %}">
165 <img src=
"/media/unsubscribe.png" alt=
"{% trans "Remove
" %}" />
171 {% if user.is_authenticated %}
173 <form class=
"form-inline" action=
"{% episode_link_target episode podcast "add-chapter
" %}" method=
"POST">
176 <input type=
"text" name=
"start" id=
"start" class=
"time" placeholder=
"h:mm:ss"/> -
177 <input type=
"text" name=
"end" id=
"end" class=
"time" placeholder=
"h:mm:ss"/>
180 <input type=
"checkbox" name=
"advertisement" />
183 <input class=
"input-small" type=
"text" name=
"label" />
186 <input class=
"btn" type=
"submit" value=
"{% trans "Add
" %}" />
195 {% if user.is_authenticated or history %}
197 <h4>{% trans
"History" %}
</h4>
200 <th>{% trans
"Time" %}
</th>
201 <th>{% trans
"Action" %}
</th>
202 <th>{% trans
"Device" %}
</th>
206 {% for s in history %}
208 <td><abbr title=
"{{ s.timestamp }}">{{ s.timestamp|naturalday }}
</abbr></td>
209 <td style=
"text-align: center;">{{ s|episode_status_icon }}
</td>
212 <a href=
"{% url "device
" s.device.uid %}">{{ s.device|device_icon }} {{ s.device.name|striptags }}
</a>
215 <td>{% if s.started or s.playmark %}{{s.started|format_time }} - {% endif %}
216 {% if s.playmark %}{{ s.playmark|format_time }}{% endif %}
221 {% if user.is_authenticated %}
223 <form action=
"{% episode_link_target episode podcast "add-episode-action
" %}" method=
"POST">
226 <input class=
"input-small" type=
"text" id=
"timestamp" name=
"timestamp" placeholder=
"empty = now" /></td>
228 <select class=
"input-small" name=
"action">
229 {% for action, str in actions %}
230 <option value=
"{{ action }}">{{ str }}
</option>
235 <select class=
"input-small" name=
"device">
236 <option value=
""></option>
237 {% for device_id, name in devices.items %}
238 <option value=
"{{ device_id }}">{{ name }}
</option>
243 <input class=
"btn" type=
"submit" value=
"{% trans "Add
" %}" />
255 {% block javascript %}
256 <script type=
"text/javascript">
258 {% if episode
.url
|is_youtube_video
%}
259 {% embed_youtube_video podcast episode user
%}
263 {% endblock javascript %}
267 {% comment %}disable ads on episode pages{% endcomment %}