allow setting logo_url for PodcastGroup objects
[mygpo.git] / mygpo / share / templates / lists.html
blob027acc1d2f018473cfe30bdc56d8ff0c45ffc6a2
1 {% extends "base.html" %}
3 {% load url from future %}
4 {% load i18n %}
5 {% load podcasts %}
6 {% load charts %}
7 {% load math %}
8 {% load utils %}
10 {% load menu %}
11 {% block mainmenu %}{{ "/share/"|main_menu }}{% endblock %}
12 {% block sectionmenu %}{{ "/share/lists/"|section_menu }}{% endblock %}
14 {% block title %}{% trans "Podcast Lists" %}{% endblock %}
16 {% block header %}
17 <h1>{% trans "Podcast Lists" %}</h1>
18 {% endblock %}
21 {% block content %}
23 <table class="list">
24 {% for list in lists %}
25 <tr>
26 <td><a href="{% url "list-show" user.username list.slug %}">{{ list.title }}</a></td>
27 <td>{% blocktrans with list.podcasts|length as num_podcasts %}{{ num_podcasts }} Podcasts{% endblocktrans %}</td>
28 <td>
29 <form action="{% url "list-delete" user.username list.slug %}" method="post">
30 {% csrf_token %}
31 <button class="btn btn-danger btn-small" type="submit">
32 <i class="icon-trash"></i> {% trans "Delete" %}
33 </button>
34 </form>
35 </td>
36 </tr>
37 {% empty %}
38 <tr>
39 <td colspan="3">{% trans "You don't have any podcast lists yet." %}</td>
40 </tr>
41 {% endfor %}
42 </table>
44 {% endblock %}
47 {% block sidebar %}
49 <div class="well">
51 <h4>{% trans "Create List" %}</h4>
52 <form class="form-inline" action="{% url "list-create" %}" method="post">
53 {% csrf_token %}
54 <div class="input-append">
55 <input placeholder="Title" class="input-medium" type="text" name="title" />
56 <button class="btn btn-primary" type="submit">{% trans "Create" %}</button>
57 </div>
58 </form>
60 <p>
61 {% blocktrans %}Podcast Lists are intended to share podcasts about certain topics and are therefore always visible to everyone.{% endblocktrans %}
62 </p>
63 </div>
65 {% endblock %}