annotate gpp/templates/forums/manage_subscriptions.html @ 227:423c39ee44e0

Rework the who's online middleware and template tag for #87.
author Brian Neal <bgneal@gmail.com>
date Tue, 06 Jul 2010 03:02:20 +0000
parents 6a5549c2efb5
children
rev   line source
bgneal@181 1 {% extends 'base.html' %}
bgneal@181 2 {% block title %}Forums: Topic Subscriptions{% endblock %}
bgneal@181 3 {% block content %}
bgneal@181 4 <h2>Forums: Topic Subscriptions</h2>
bgneal@181 5
bgneal@181 6 <h3>
bgneal@181 7 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> &raquo; Topic Subscriptions
bgneal@181 8 </h3>
bgneal@181 9 <p>The forum topics you are currently subscribed to are listed below.</p>
bgneal@181 10 {% include 'forums/pagination.html' %}
bgneal@194 11 <form action="." method="post">{% csrf_token %}
bgneal@181 12 <table class="forum-topic-table">
bgneal@181 13 <thead>
bgneal@181 14 <tr>
bgneal@181 15 <th>Forum</th>
bgneal@181 16 <th>Topic</th>
bgneal@181 17 <th>Select</th>
bgneal@181 18 </tr>
bgneal@181 19 </thead>
bgneal@181 20 <tbody>
bgneal@181 21 {% for topic in page.object_list %}
bgneal@181 22 <tr>
bgneal@181 23 <td><a href="{{ topic.forum.get_absolute_url }}">{{ topic.forum.name }}</a></td>
bgneal@181 24 <td><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></td>
bgneal@181 25 <td><input type="checkbox" name="delete_ids" value="{{ topic.id }}" /></td>
bgneal@181 26 </tr>
bgneal@181 27 {% empty %}
bgneal@181 28 <tr><td colspan="3"><em>No Topic Subscriptions</em></td></tr>
bgneal@181 29 {% endfor %}
bgneal@181 30 </tbody>
bgneal@181 31 </table>
bgneal@181 32 {% include 'forums/pagination.html' %}
bgneal@181 33 {% if page.object_list %}
bgneal@181 34 <input type="hidden" name="page" value="{{ page.number }}" />
bgneal@181 35 <input type="submit" name="delete_selected" value="Delete Selected" /> &bull;
bgneal@181 36 <input type="submit" name="delete_all" value="Delete All" />
bgneal@181 37 {% endif %}
bgneal@181 38 </form>
bgneal@181 39 {% endblock %}