use new style {% url "view" %} template syntax
[mygpo.git] / mygpo / share / templates / lists_user.html
blobfbaf230fcf81ccab7c30b4bdb74e953dcc98cd16
1 {% extends "base.html" %}
3 {% load url from future %}
4 {% load i18n %}
6 {% load menu %}
7 {% block mainmenu %}{{ "/directory/"|main_menu }}{% endblock %}
8 {% block sectionmenu %}{{ "/lists/"|section_menu }}{% endblock %}
10 {% block title %}{% trans "Podcast Lists" %}{% endblock %}
12 {% block header %}
13 <h1>{% blocktrans with user.username as username %}Podcast Lists by {{ username }}{% endblocktrans%}</h1>
14 {% endblock %}
17 {% block content %}
19 <table class="list">
20 {% for list in lists %}
21 <tr>
22 <td><a href="{% url "list-show" user.username list.slug %}">{{ list.title }}</a></td>
23 <td>{% blocktrans with list.podcasts|length as num_podcasts %}{{ num_podcasts }} Podcasts{% endblocktrans %}</td>
24 </tr>
25 {% empty %}
26 <tr>
27 <td colspan="3">
28 {% blocktrans with user.username as username %}{{ username }} hasn't created any podcast lists yet.{% endblocktrans %}
29 </td>
30 </tr>
31 {% endfor %}
32 </table>
33 {% endblock %}
36 {% block sidebar %}
37 <div class="well">
38 <h3>{% trans "Know Some Great Podcasts?" %}</h3>
39 <p>{% trans "Create a list of podcasts about a topic you like" %}</p>
40 <a class="btn btn-primary" href="{% url "lists-overview" %}">Go</a>
41 </div>
42 {% endblock %}