use new style {% url "view" %} template syntax
[mygpo.git] / mygpo / web / templates / user_subscriptions.html
bloba65d7860c5c911f235fe7dbbacc3ec102aa95c1c
1 {% extends "base.html" %}
2 {% load url from future %}
3 {% load i18n %}
4 {% load podcasts %}
6 {% load menu %}
7 {% block mainmenu %}{{ "/share/"|main_menu }}{% endblock %}
8 {% block sectionmenu %}{{ "/user/subscriptions/"|section_menu:other_user.username }}{% endblock %}
10 {% block head %}
11 <link rel="alternate" title="Subscription Changes of {{ other_user.username }}" href="{% url "shared-subscriptions-rss" other_user.username %}" type="application/rss+xml">
12 {% endblock %}
14 {% block title %}
15 {% blocktrans with other_user.username as username%}{{ username }}'s Subscriptions{% endblocktrans %}
16 {% endblock %}
18 {% block header %}
19 <h1>{% blocktrans with other_user.username as username%}{{ username }}'s Subscriptions{% endblocktrans %}</h1>
20 <small class="description">
21 {% url "user other_user.username" as userpage-url %}
22 {% blocktrans with subscriptions|length as num_subscriptions and other_user.username as username %}<a href="{{userpage-url}}">{{username}}</a> has {{num_subscriptions}} subscriptions{% endblocktrans %}
23 </small>
25 {% endblock %}
28 {% block content %}
30 {% if not subscriptionlist|length_is:"0" %}
31 <table class="list">
33 {% for p in subscriptions %}
34 <tr>
35 <td class="logo">{{ p|podcast_logo }}</td>
36 <td class="listlink">{% podcast_group_link p %}</td>
37 </tr>
38 {% endfor %}
39 </table>
41 <div class="btn-group">
42 <a class="btn" href="{% url "shared-subscriptions-opml" other_user.username %}{% if token %}?token={{ token }}{% endif %}">
43 <i class="icon-download"></i>{% trans "Download Subscriptions as OPML" %}
44 </a>
45 <a class="btn" href="{% url "shared-subscriptions-rss" other_user.username %}{% if token %}?token={{ token }}{% endif %}">
46 <i class="icon-rss"></i> {% trans "Subscribe to Changes" %}
47 </a>
48 </div>
50 {% else %}
52 <p>{% blocktrans with other_user.username as username %}{{ username }} doesn't have any subscriptions yet.{% endblocktrans %}</p>
54 {% endif %}
56 {% endblock %}
59 {% block sidebar %}
60 {% if user.is_authenticated %}
61 <div class="well">
62 <h4>{% trans "Share Your Subscriptions" %}</h4>
63 <p>{% trans "Want to share your own subscriptions?" %}</p>
65 <a class="btn btn-primary" href="{% url "share" %}">
66 {% trans "Go" %}
67 </a>
68 </div>
69 {% endif %}
71 <div class="well">
72 <h4>{% trans "Nokia Podcasting" %}</h4>
73 <p>{% trans "Add <tt>&amp;symbian=true#.opml</tt> to the OPML URL to get an OPML file for Nokia Podcasting on Symbian devices." %}</p>
74 </div>
76 {% endblock %}