Django-magic to prevent cross-site request forgery for POST requests
[mygpo.git] / mygpo / web / templates / subscriptions.html
blobd6bcd2cfc04630a5219a747b1902e31092a162b4
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load devices %}
4 {% load episodes %}
5 {% load podcasts %}
7 {% load menu %}
8 {% block mainmenu %}{{ "/subscriptions/"|main_menu }}{% endblock %}
9 {% block sectionmenu %}{{ "/subscriptions/"|section_menu }}{% endblock %}
11 {% block title %}{% trans "My Podcast Subscriptions" %}{% endblock %}
13 {% block content %}
14 <h1>{% trans "My Podcast Subscriptions" %}</h1>
16 {% if not subscriptionlist|length_is:"0" %}
17 <p>{% trans "This is a list of your podcast subscriptions." %} {% blocktrans %}You can <a href="/share/">share</a> it with others.{% endblocktrans %}</p>
19 <table class="list podcast_list">
20 <tr>
21 <th>&nbsp;</th>
22 <th>{% trans "Podcast" %}</th>
23 <th>{% trans "Devices" %}</th>
24 </tr>
26 {% for s in subscriptionlist %}
27 <tr>
28 <td>{{ s.podcast|podcast_logo }}</td>
29 <td><a class="listlink" href="/podcast/{{ s.podcast.id }}">{{ s.podcast|striptags }}</a><br/><span class="latest_episode">
30 {% if s.episode %}
31 {% trans "Latest Episode:" %} <a href="/episode/{{s.episode.id}}">{{ s.episode.title|default:"Unnamed Episode"|striptags }}</a>
32 {% if s.episode.action %}
33 ({{ s.episode.timestamp|date:"Y-m-d" }}, {{s.episode.action|episode_status_text }})
34 {% else %}
35 ({{ s.episode.timestamp|date:"Y-m-d" }})
36 {% endif %}
37 {% else %}
38 {% trans "No episodes" %}
39 {% endif %}
40 </span></td>
41 <td>{{ s.devices|device_list }}</td>
42 </tr>
43 {% endfor %}
44 </table>
45 {% else %}
47 <h2>{% trans "Where to start?" %}</h2>
48 <p>{% blocktrans with user.username|striptags as username %}{{ url }} help you to track your podcasts which you have subscribed on your devices - desktop computer, notebook, mobile devices, etc. To start using my.gpodder.org set up <a href="http://gpodder.org">gPodder</a> with your username &ndash; <strong>{{username}}</strong> &ndash; and password and upload your podcasts. They will automatically show up here.{% endblocktrans %}</p>
50 {% endif %}
52 <div class="info">
53 <strong>{% trans "Subscribe to new Podcasts!" %}</strong>
54 {% blocktrans %}Browse the <a href="/toplist/">toplist</a> and your <a href="/suggestions/">personal suggestions</a>, <a href="/search/">search</a> or simply copy and paste the podcast's URL here{% endblocktrans %}
55 <form method="get" action="subscribe">
56 <input class="url" name="url" type="text" />
57 <input type="submit" value="{% trans "Subscribe" %}" />
58 </form>
59 </div>
61 {% endblock %}