1 {% extends
"base.html" %}
10 {% block mainmenu %}{{
"/podcast/"|main_menu }}{% endblock %}
11 {% block sectionmenu %}
12 {% if podcast.title %}
13 {{
"/podcast/"|section_menu:podcast.title }}
15 {{
"/podcast/"|section_menu:
"Unnamed Podcast" }}
19 {% block title %}{{ podcast.title|default:
"Unnamed Podcast"|striptags }}{% endblock %}
22 {% if podcast.logo_url %}
23 <div id=
"podcastlogo">{{ podcast|podcast_logo_big }}
</div>
26 <h1>{% if podcast.title %}{{ podcast.title|striptags }}{% else %}{% trans
"Unnamed Podcast" %}{%endif%}
</h1>
27 <small class=
"description">
29 <a href=
"{{podcast.url}}">{% trans
"feed" %}
</a>{% if podcast.link %},
<a href=
"{{podcast.link}}">{% trans
"website" %}
</a>
31 {% trans
"stats:" %} {% blocktrans with podcast.subscriber_count as subscriber_count and podcast.listener_count as listener_count %}{{subscriber_count}} subscribers, {{listener_count}} listeners{% endblocktrans %}
33 <hr style=
"clear: none;"/>
35 {% if related_podcasts %}
36 <div class=
"related-podcasts">
37 <strong>{% trans
"Also available" %}
</strong>
38 {% for p in related_podcasts %}
39 <a href=
"{% url podcast p.id %}">{{ p.group_member_name|striptags }}
</a>
44 {% if podcast.description %}
45 <p class=
"description">{{ podcast.description|striptags }}
</p>
49 <h2>{% trans
"My Subscriptions" %}
</h2>
53 <div class=
"success">{% trans
"Your settings have been saved." %}
</div>
56 <form action=
"{% url podcast podcast.id %}" method=
"POST">
58 <p>{{ privacy_form.public }} {{ privacy_form.public.label_tag }}
</p>
59 <input type=
"submit" value=
"Save" />
64 {% if not user.is_authenticated %}
65 <div class=
"subscribe"><a href=
"{% url subscribe podcast.id %}"><img src=
"/media/subscribe.png" style=
"vertical-align: middle;" alt=
""/> {% trans
"Subscribe to this podcast" %}
</a></div>
68 {% if devices or can_subscribe %}
69 <table class=
"list" id=
"subscribed-devices-list">
71 <th>{% trans
"Device" %}
</th>
72 <th>{% trans
"(Un)subscribe" %}
</th>
74 {% for device in devices %}
77 {{ device|device_icon }}
78 <a href=
"{% url device device.id %}">{{ device|striptags }}
</a>
80 <td style=
"text-align: center;">
81 <a href=
"{% url unsubscribe podcast.id device.id %}?return_to=/podcast/{{ podcast.id }}"><img src=
"/media/unsubscribe.png" alt=
"{% trans "Unsubscribe
" %}" title=
"{% trans "Click here to unsubscribe
" %}"/></a>
85 {% if can_subscribe %}
87 <form action=
"{% url subscribe podcast.id %}" method=
"post">
89 <td>{{ subscribe_form.as_p }}
</td>
90 <td style=
"text-align: center;">
91 <input type=
"submit" class=
"subscribe" value=
"" />
100 <div class=
"tag-list">
102 {% for tag in tags %}{% spaceless %}
104 <span class=
"own">{{ tag.tag }}
<a class=
"remove" href=
"{% url remove-tag podcast.id %}?tag={{ tag.tag }}">X
</a></span>
106 <span class=
"other">{{ tag.tag }}
</span>
108 {% if not forloop.last %}
<span class=
"seperator">,
</span>{% endif %}
111 {% if user.is_authenticated %}
112 <form action=
"/podcast/{{ podcast.id }}/add-tag">
113 <input type=
"text" name=
"tag" />
114 <input type=
"submit" value=
"Add" />
122 <table class=
"list episode_list">
125 <th>{% trans
"Episode" %}
</th>
126 <th>{% trans
"Released" %}
</th>
127 <th>{% trans
"Listeners" %}
</th>
130 {% for episode in episodes %}
132 <td style=
"text-align: center; padding-left: 5px; padding-right: 5px;">{{ episode.action|episode_status_icon }}
</td>
133 <td style=
"width: 500px;">
134 <p class=
"title"><a href=
"{% url episode episode.id %}">{{ episode.title|default:
"Unknown Episode"|striptags }}
</a></p>
135 <p class=
"description">{{ episode.description|default:
""|striptags|truncatewords:
"15" }}
</p>
137 <td>{{ episode.timestamp|default:
""|date:
"Y-m-d" }}
</td>
139 {% if episode.listener_count %}
140 {{ episode.listener_count|vertical_bar:max_listeners }}
150 <h2>{% trans
"Subscription history" %}
</h2>
153 <th>{% trans
"Timestamp" %}
</th>
154 <th>{% trans
"Action" %}
</th>
155 <th>{% trans
"Devices" %}
</th>
157 {% for s in history %}
159 <td><abbr title=
"{{ s.timestamp }}">{{ s.timestamp|naturalday }}
</abbr></td>
160 <td>{{ s|podcast_status_icon }}
</td>
162 <a href=
"{% url device s.device.id %}">{{ s.device|device_icon }} {{ s.device.name|striptags }}
</a></td>
168 {% if not podcast.title %}
169 <div class=
"info"><strong>{% trans
"Why Unnamed Podcast?" %}
</strong> {% trans
"Because we display names after we have fetched the information form the feed -- and this may take some time. Until this is completed, the podcast will simply be called this way." %}
</div>