comparison gpp/templates/forums/mod_forum.html @ 111:e5faf9f0c11a

Forums: implemented the bulk moderator functions that operate on a forum: bulk sticky, lock, delete, and move. These haven't been tested that well yet.
author Brian Neal <bgneal@gmail.com>
date Mon, 28 Sep 2009 03:57:09 +0000
parents
children d1b0b86441c0
comparison
equal deleted inserted replaced
110:c329bfaed4a7 111:e5faf9f0c11a
1 {% extends 'base.html' %}
2 {% load forum_tags %}
3 {% block title %}Moderate Forum: {{ forum.name }}{% endblock %}
4 {% block content %}
5 <h2>Moderate Forum: {{ forum.name }}</h2>
6
7 <h3>
8 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> &raquo;
9 <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a>
10 </h3>
11
12 <div class="forum-block">
13 {{ page_nav }}
14 <form action="." method="post">
15 <table class="forum-index-table">
16 <thead>
17 <tr>
18 <th class="forum-index_title">Topics</th>
19 <th class="forum-index_replies">Replies</th>
20 <th class="forum-index_author">Author</th>
21 <th class="forum-index_last_post">Last Post</th>
22 <th class="forum-index_select">Select<br /><input type="checkbox" id="forums-master-topic" /></th>
23 </tr>
24 </thead>
25 <tbody>
26 {% for topic in page.object_list %}
27 <tr class="{% cycle 'odd' 'even' %}">
28 <td>{% if topic.sticky %}<img src="{{ MEDIA_URL }}icons/asterisk_orange.png" alt="Sticky" title="Sticky" class="forums-topic-icon" />{% endif %}
29 {% if topic.locked %}<img src="{{ MEDIA_URL }}icons/lock.png" alt="Locked" title="Locked"
30 class="forums-topic-icon" />{% endif %}
31 <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td>
32 <td class="forum-index_replies">{{ topic.reply_count }}</td>
33 <td class="forum-index_author"><a href="{% url bio-view_profile username=topic.user.username %}" title="View profile for {{ topic.user.username }}">{{ topic.user.username }}</a></td>
34 <td class="forum-index_last_post">
35 {% last_post_info topic.last_post MEDIA_URL %}
36 </td>
37 <td class="forum-index_select"><input type="checkbox" name="topic_ids" value="{{ topic.id }}" /></td>
38 </tr>
39 {% empty %}
40 <tr>
41 <td colspan="5">
42 <i>No topics available.</i>
43 </td>
44 </tr>
45 {% endfor %}
46 </tbody>
47 </table>
48 {{ page_nav }}
49 <div class="forum-mod-controls">
50 <input type="submit" value="Toggle Sticky" name="sticky" />
51 <input type="submit" value="Toggle Lock" name="lock" />
52 <input type="submit" value="Delete" name="delete" /><br />
53 <input type="submit" value="Move To:" name="move" />
54 {{ form }}
55 <input type="hidden" name="page" value="{{ page.number }}" />
56 </div>
57 </form>
58 </div>
59 {% endblock %}