remove now unused {% load url from future %}
[mygpo.git] / mygpo / web / templates / subscriptions.html
blobcad144682c859f2558417bf23d798bf3a2f6edb0
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 "Podcast Subscriptions" %}{% endblock %}
14 {% block header %}
15 <h1>{% trans "Podcast Subscriptions" %}</h1>
16 {% endblock %}
19 {% block content %}
20 {% if not subscriptionlist|length_is:"0" %}
22 <table class="list podcast_list">
24 {% for s in subscriptionlist %}
25 <tr>
26 <td class="logo">{{ s.podcast|podcast_logo }}</td>
27 <td>{% podcast_group_link s.podcast %}<br/><span class="latest_episode">
28 {% if s.episodes %}
29 {% blocktrans with s.episodes as episode_count %}{{ episode_count }} Episodes{% endblocktrans %}
30 {% endif %}
31 </span></td>
32 <td>{{ s.devices|device_list }}</td>
33 </tr>
34 {% endfor %}
35 </table>
37 <div class="btn-group">
38 <a class="btn" href="{% url "subscriptions-download" %}">
39 <i class="icon-download"></i> {% trans "Download OPML" %}
40 </a>
42 <a class="btn" href="{% url "share" %}">
43 <i class="icon-share"></i> {% trans "Share" %}
44 </a>
45 </div>
47 {% else %}
49 <p>
50 {% url "directory-home" as directory %}
51 {% url "devices" as devices %}
52 {% blocktrans %}You don't have any subscriptions yet. Set up your <a href="{{ devices }}">podcast clients</a> and <a href="{{ directory }}">discover interesting podcasts</a>.{% endblocktrans %}
53 </p>
55 {% endif %}
56 {% endblock %}
58 {% block sidebar %}
60 <div class="well">
61 <h4>{% trans "Subscribe to Podcasts" %}</h4>
62 {% url "toplist" as toplist-url %}
63 {% url "search" as search-url %}
64 {% url "suggestions" as suggestions-url %}
65 {% 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 paste the URL of the podcast's feed here{% endblocktrans %}
66 <form class="form-inline" method="get" action="{% url "subscribe-by-url" %}">
67 <div class="input-append">
68 <input class="url input-large" name="url" type="text" />
69 <button class="btn btn-success" type="submit">
70 <i class="icon-plus"></i>
71 </button>
72 </div>
73 </form>
74 </div>
76 {% endblock %}