view gpp/templates/forums/manage_subscriptions.html @ 197:2baadae33f2e

Got autocomplete working for the member search. Updated django and ran into a bug where url tags with comma separated kwargs starting consuming tons of CPU throughput. The work-around is to cut over to using spaces between arguments. This is now allowed to be consistent with other tags. Did some query optimization for the news app.
author Brian Neal <bgneal@gmail.com>
date Sat, 10 Apr 2010 04:32:24 +0000
parents 6a5549c2efb5
children
line wrap: on
line source
{% extends 'base.html' %}
{% block title %}Forums: Topic Subscriptions{% endblock %}
{% block content %}
<h2>Forums: Topic Subscriptions</h2>

<h3>
   <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> &raquo; Topic Subscriptions
</h3>
<p>The forum topics you are currently subscribed to are listed below.</p>
{% include 'forums/pagination.html' %}
<form action="." method="post">{% csrf_token %}
<table class="forum-topic-table">
   <thead>
      <tr>
         <th>Forum</th>
         <th>Topic</th>
         <th>Select</th>
      </tr>
   </thead>
   <tbody>
      {% for topic in page.object_list %}
         <tr>
            <td><a href="{{ topic.forum.get_absolute_url }}">{{ topic.forum.name }}</a></td>
            <td><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></td>
            <td><input type="checkbox" name="delete_ids" value="{{ topic.id }}" /></td>
         </tr>
      {% empty %}
         <tr><td colspan="3"><em>No Topic Subscriptions</em></td></tr>
      {% endfor %}
   </tbody>
</table>
{% include 'forums/pagination.html' %}
{% if page.object_list %}
<input type="hidden" name="page" value="{{ page.number }}" />
<input type="submit" name="delete_selected" value="Delete Selected" /> &bull;
<input type="submit" name="delete_all" value="Delete All" />
{% endif %}
</form>
{% endblock %}