comparison gpp/templates/forums/manage_subscriptions.html @ 181:500e5875a306

Implementing #61: adding a forum topic subscription feature.
author Brian Neal <bgneal@gmail.com>
date Sun, 28 Mar 2010 01:07:47 +0000
parents
children 6a5549c2efb5
comparison
equal deleted inserted replaced
180:aef00df91165 181:500e5875a306
1 {% extends 'base.html' %}
2 {% block title %}Forums: Topic Subscriptions{% endblock %}
3 {% block content %}
4 <h2>Forums: Topic Subscriptions</h2>
5
6 <h3>
7 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> &raquo; Topic Subscriptions
8 </h3>
9 <p>The forum topics you are currently subscribed to are listed below.</p>
10 {% include 'forums/pagination.html' %}
11 <form action="." method="post">
12 <table class="forum-topic-table">
13 <thead>
14 <tr>
15 <th>Forum</th>
16 <th>Topic</th>
17 <th>Select</th>
18 </tr>
19 </thead>
20 <tbody>
21 {% for topic in page.object_list %}
22 <tr>
23 <td><a href="{{ topic.forum.get_absolute_url }}">{{ topic.forum.name }}</a></td>
24 <td><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></td>
25 <td><input type="checkbox" name="delete_ids" value="{{ topic.id }}" /></td>
26 </tr>
27 {% empty %}
28 <tr><td colspan="3"><em>No Topic Subscriptions</em></td></tr>
29 {% endfor %}
30 </tbody>
31 </table>
32 {% include 'forums/pagination.html' %}
33 {% if page.object_list %}
34 <input type="hidden" name="page" value="{{ page.number }}" />
35 <input type="submit" name="delete_selected" value="Delete Selected" /> &bull;
36 <input type="submit" name="delete_all" value="Delete All" />
37 {% endif %}
38 </form>
39 {% endblock %}