more style updates
[mygpo.git] / mygpo / web / templates / subscriptions.html
blob6f44060450d8047a44d33c748fcde189724e1459
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 "Podcast Subscriptions" %}</h1>
16 {% if not subscriptionlist|length_is:"0" %}
18 <table class="list podcast_list">
19 <tr>
20 <th>&nbsp;</th>
21 <th>{% trans "Podcast" %}</th>
22 <th>{% trans "Devices" %}</th>
23 </tr>
25 {% for s in subscriptionlist %}
26 <tr>
27 <td>{{ s.podcast|podcast_logo }}</td>
28 <td>{% podcast_group_link s.podcast %}<br/><span class="latest_episode">
29 {% if s.episode %}
30 {% episode_link s.episode s.podcast %}
31 {% else %}
32 {% trans "No episodes" %}
33 {% endif %}
34 </span></td>
35 <td>{{ s.devices|device_list }}</td>
36 </tr>
37 {% endfor %}
38 </table>
40 <div>
41 <a href="{% url subscriptions-download %}">
42 <img src="/media/24x24/opml-icon.png" class="action-button" /> {% trans "Download Subscriptions as OPML" %}
43 </a>
44 </div>
46 <div>
47 <a href="{% url share %}">
48 <img src="/media/24x24/openshareicon.png" class="action-button" /> {% trans "Share" %}
49 </a>
50 </div>
52 {% else %}
54 <h2>{% trans "Where to start?" %}</h2>
55 <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>
57 {% endif %}
59 <div class="info">
60 <strong>{% trans "Subscribe to new Podcasts!" %}</strong>
61 {% url toplist as toplist-url %}
62 {% url search as search-url %}
63 {% url suggestions as suggestions-url %}
64 {% blocktrans %}Browse the <a href="{{ toplist-url }}">toplist</a> and your <a href="{{ suggestions-url }}">personal suggestions</a>, <a href="{{ search-url }}">search</a> or simply copy and paste the podcast's URL here{% endblocktrans %}
65 <form method="get" action="{% url subscribe-by-url %}">
66 <input class="url" name="url" type="text" />
67 <input type="submit" value="{% trans "Subscribe" %}" />
68 </form>
69 </div>
71 {% endblock %}