1 {% extends
"base.html" %}
7 <h1>{% if podcast.title %}{{ podcast.title|striptags }}{% else %}{% trans
"Unnamed Podcast" %}{%endif%}
</h1>
8 <a href=
"{{ podcast.url }}" class=
"URL">{{ podcast.url }}
</a>
10 {% if podcast.description %}
11 <p class=
"description">{{ podcast.description|striptags }}
</p>
14 {% if not user.is_authenticated %}
15 <div class=
"subscribe">
16 <a href=
"/podcast/{{ podcast.id }}/subscribe">
17 {% if podcast.title %}
18 {% blocktrans with podcast.title|striptags as podcasttitle %}Subscribe to {{ podcasttitle }}{% endblocktrans %}
20 {% trans
"Subscribe to this podcast" %}
26 {% if devices|length_is:
"0" %}
28 {% if can_subscribe %}
29 <div class=
"subscribe">
30 <a href=
"/podcast/{{ podcast.id }}/subscribe">
31 {% if podcast.title %}
32 {% blocktrans with podcast.title|striptags as podcasttitle %}Subscribe to {{ podcasttitle }}{% endblocktrans %}
34 {% trans
"Subscribe to this podcast" %}
41 <h2>{% trans
"Devices" %}
</h2>
42 <strong>{% trans
"You have subscribed this podcast on" %}
</strong>
44 {% for device in devices %}
45 <li class=
"{{device.type}}">
46 <div class=
"devicesLeft"><a href=
"/device/{{ device.id }}">{{ device|striptags }}
</a></div>
47 <div class=
"devicesRight"><a href=
"{{unsubscribe}}/{{ device.id }}?return_to=/podcast/{{ podcast.id }}"><img src=
"/media/unsubscribe.png" /></a></div>
48 <div class=
"devicesClear"></div>
53 {% if can_subscribe %}
54 <div class=
"subscribe">
55 <a href=
"/podcast/{{ podcast.id }}/subscribe">
56 {% if podcast.title %}
57 {% blocktrans with podcast.title|striptags as podcasttitle %}Subscribe to {{ podcasttitle }} on other devices{% endblocktrans %}
59 {% trans
"Subscribe to this podcast on other devices" %}
67 {% if not episodes|length_is:
"0" %}
68 <h2>{% trans
"Episodes" %}
</h2>
72 <th>{% trans
"Title" %}
</th>
73 <th>{% trans
"Description" %}
</th>
74 <th>{% trans
"Released" %}
</th>
77 {% for episode, action in episodes.items %}
79 <td>{{ action|episode_status_icon }}
</td>
80 <td><a href=
"/episode/{{ episode.id }}">{{ episode.title|default:
"Unknown Episode"|striptags }}
</a></td>
81 <td class=
"description">{{ episode.description|default:
""|striptags|truncatewords:
"15" }}
</td>
82 <td>{{ episode.timestamp|default:
""|naturalday }}
</td>
89 {% if not history|length_is:
"0" %}
90 <h2>{% trans
"Subscription History" %}
</h2>
93 <th>{% trans
"Timestamp" %}
</th>
94 <th>{% trans
"Action" %}
</th>
95 <th>{% trans
"Devices" %}
</th>
97 {% for s in history %}
99 <td><abbr title=
"{{ s.timestamp }}">{{ s.timestamp|naturalday }}
</abbr></td>
101 {% ifequal s.action
1 %}
102 <img src=
"/media/subscribe.png" />
104 {% ifequal s.action -
1 %}
105 <img src=
"/media/unsubscribe.png" />
108 <td>{{ s.device.name|striptags }}
</td>
114 {% if not podcast.title %}
115 <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>