1 {% extends
"podcast-base.html" %}
11 {% block mainmenu %}{{
"/podcast/"|main_menu }}{% endblock %}
12 {% block sectionmenu %}
13 {% if podcast.title %}
14 {{
"/podcast/"|section_menu:podcast.title }}
16 {{
"/podcast/"|section_menu:
"Unnamed Podcast" }}
20 {% block title %}{{ podcast.title|default:
"Unnamed Podcast"|striptags }}{% endblock %}
26 <div class=
"first-episode">
27 {% include
"components/episode-box.html" with podcast=podcast episode=episode long=True only %}
33 <div class=
"btn-toolbar">
36 <div class=
"btn-group">
37 <a class=
"btn btn-default" href=
"{% podcast_link_target podcast "podcast-publisher-detail
" %}">
38 <i class=
"icon-wrench"></i>
39 {% trans
"Publisher Pages" %}
44 {% if not user.is_authenticated %}
45 <div class=
"btn-group">
46 <a class=
"btn btn-default" href=
"{% podcast_link_target podcast "subscribe
" %}">
47 <i class=
"icon-plus"></i>
48 {% trans
"Login to Subscribe" %}
53 {% if devices or can_subscribe %}
55 <div class=
"btn-group">
56 {% if can_subscribe %}
57 <button class=
"btn btn-primary" onclick=
"submitForm('subscribe+all');">
58 <i class=
"icon-plus-sign"></i>
59 {% trans
"Subscribe" %}
61 <button class=
"btn dropdown-toggle btn-primary" data-toggle=
"dropdown">
62 <span class=
"caret"></span>
65 <button class=
"btn btn-default" onclick=
"submitForm('unsubscribe+all');">
66 <i class=
"icon-remove-sign"></i>
67 {% trans
"Unsubscribe" %}
69 <button class=
"btn dropdown-toggle btn-default" data-toggle=
"dropdown">
70 <span class=
"caret"></span>
73 <ul class=
"dropdown-menu">
74 {% if can_subscribe %}
76 <a href=
"javascript:void(0);" onclick=
"submitForm('subscribe+all');">
77 <i class=
"icon-plus-sign"></i>
78 {% trans
"Subscribe on all devices" %}
80 <form class=
"internal"
82 action=
"{% podcast_link_target podcast "subscribe-all
" %}"
88 {% for device in subscribe_targets %}
89 <li value=
"{{ device.uid }}">
90 <a href=
"javascript:void(0);" onclick=
"submitForm('subscribe-{{ device|devices_uids }}');">
91 <i class=
"icon-plus"></i>
92 {{ device|devices_name }}
94 <form class=
"internal"
95 action=
"{% podcast_link_target podcast "subscribe
" %}"
97 id=
"subscribe-{{ device|devices_uids }}">
99 <input type=
"hidden" name=
"targets" value=
"{{ device|devices_uids }}" />
103 {% if can_subscribe and devices %}
104 <li class=
"divider"></li>
108 <a href=
"javascript:void(0);" onclick=
"submitForm('unsubscribe+all');">
109 <i class=
"icon-remove-sign"></i>
110 {% trans
"Unsubscribe from all devices " %}
112 <form class=
"internal"
114 action=
"{% podcast_link_target podcast "unsubscribe-all
" %}"
115 id=
"unsubscribe+all">
120 {% for device in devices %}
121 <li value=
"{{ device.uid }}">
122 <a href=
"javascript:void(0);" onclick=
"submitForm('unsubscribe-{{ device.uid }}');">
123 <i class=
"icon-remove"></i>
124 {{ device|devices_name }}
126 <form class=
"internal"
128 action=
"{% podcast_link_target podcast "unsubscribe
" device.uid %}?return_to={% podcast_link_target podcast %}"
129 id=
"unsubscribe-{{ device.uid }}">
141 <a class=
"btn btn-default" href=
"{% podcast_link_target podcast "podcast-history
" %}">
142 <i class=
"icon-calendar"></i>
143 {% trans
"Subscription History" %}
148 <a class=
"btn btn-default" href=
"{% podcast_link_target podcast "podcast-flattr
" %}">
149 <img src=
"https://flattr.com/_img/icons/flattr_logo_16.png"
150 alt=
"Flattr {{ podcast.title|default:"Unnamed Podcast
"|striptags }}" />
155 <a href=
"javascript:void(0);" onclick=
"$('#tag-box').toggle();" class=
"btn btn-default">
156 <i class=
"icon-tag"></i>
161 <a class=
"btn btn-default" href=
"http://127.0.0.1:5984/_utils/document.html?mygpo/{% get_id podcast %}">
162 <i class=
"icon-cogs"></i>
172 <i class=
"icon-tag"></i>
173 <strong>{% trans
"Tags" %}:
</strong>
175 {% for tag in tags %}
178 <span class=
"own">{{ tag.tag }}
<a class=
"remove" href=
"{% podcast_link_target podcast "remove-tag
" %}?tag={{ tag.tag }}">X
</a></span>
180 <span class=
"other">{{ tag.tag }}
</span>
182 {% if not forloop.last %}
183 <span class=
"seperator">,
</span>
188 {% if user.is_authenticated %}
189 <form class=
"form-inline" action=
"{% podcast_link_target podcast "add-tag
" %}">
190 <div class=
"input-group">
191 <span class=
"input-group-addon input-sm"><i class=
"icon-tag"></i></span>
192 <input class=
"input-sm form-control" type=
"text" name=
"tag" />
193 <span class=
"input-group-btn">
194 <button class=
"btn btn-success btn-sm" type=
"submit">
195 <i class=
"icon-plus"></i>
208 <h3>{% trans
"Older Episodes" %}
</h3>
210 <div class=
"episodes">
212 {% for episode in episodes %}
213 {% include
"components/episode-box.html" with episode=episode podcast=podcast only %}
218 <ul class=
"pagination">
219 {% for page in page_list %}
221 {% if page ==
"..." %}
222 <span>{{ page }}
</span>
225 {% if page == current_page %}
226 <a href=
"{% podcast_link_target podcast "podcast-all-episodes
" %}?page={{ page }}"><strong>{{ page }}
</strong></a>
228 <a href=
"{% podcast_link_target podcast "podcast-all-episodes
" %}?page={{ page }}">{{ page }}
</a>
240 {% block javascript %}
242 <script language=
"javascript">
244 function submitForm(formid
)
246 document
.forms
[formid
].submit();
250 {% if not has_tagged
%}
251 // done in JS so that box is always visible if JS is disabled
252 $('#tag-box').toggle();