bgneal@111
|
1 {% extends 'base.html' %}
|
bgneal@111
|
2 {% load forum_tags %}
|
bgneal@111
|
3 {% block title %}Moderate Forum: {{ forum.name }}{% endblock %}
|
bgneal@112
|
4 {% block custom_js %}
|
bgneal@112
|
5 <script type="text/javascript" src="{{ MEDIA_URL }}js/forums_mod.js"></script>
|
bgneal@112
|
6 {% endblock %}
|
bgneal@111
|
7 {% block content %}
|
bgneal@111
|
8 <h2>Moderate Forum: {{ forum.name }}</h2>
|
bgneal@111
|
9
|
bgneal@111
|
10 <h3>
|
bgneal@111
|
11 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> »
|
bgneal@111
|
12 <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a>
|
bgneal@111
|
13 </h3>
|
bgneal@111
|
14
|
bgneal@111
|
15 <div class="forum-block">
|
bgneal@111
|
16 {{ page_nav }}
|
bgneal@111
|
17 <form action="." method="post">
|
bgneal@111
|
18 <table class="forum-index-table">
|
bgneal@111
|
19 <thead>
|
bgneal@111
|
20 <tr>
|
bgneal@111
|
21 <th class="forum-index_title">Topics</th>
|
bgneal@111
|
22 <th class="forum-index_replies">Replies</th>
|
bgneal@111
|
23 <th class="forum-index_author">Author</th>
|
bgneal@111
|
24 <th class="forum-index_last_post">Last Post</th>
|
bgneal@111
|
25 <th class="forum-index_select">Select<br /><input type="checkbox" id="forums-master-topic" /></th>
|
bgneal@111
|
26 </tr>
|
bgneal@111
|
27 </thead>
|
bgneal@111
|
28 <tbody>
|
bgneal@111
|
29 {% for topic in page.object_list %}
|
bgneal@111
|
30 <tr class="{% cycle 'odd' 'even' %}">
|
bgneal@111
|
31 <td>{% if topic.sticky %}<img src="{{ MEDIA_URL }}icons/asterisk_orange.png" alt="Sticky" title="Sticky" class="forums-topic-icon" />{% endif %}
|
bgneal@111
|
32 {% if topic.locked %}<img src="{{ MEDIA_URL }}icons/lock.png" alt="Locked" title="Locked"
|
bgneal@111
|
33 class="forums-topic-icon" />{% endif %}
|
bgneal@111
|
34 <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td>
|
bgneal@111
|
35 <td class="forum-index_replies">{{ topic.reply_count }}</td>
|
bgneal@111
|
36 <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>
|
bgneal@111
|
37 <td class="forum-index_last_post">
|
bgneal@120
|
38 {% last_post_info topic.last_post %}
|
bgneal@111
|
39 </td>
|
bgneal@112
|
40 <td class="forum-index_select"><input type="checkbox" name="topic_ids" value="{{ topic.id }}" class="forums-topic_check" /></td>
|
bgneal@111
|
41 </tr>
|
bgneal@111
|
42 {% empty %}
|
bgneal@111
|
43 <tr>
|
bgneal@111
|
44 <td colspan="5">
|
bgneal@111
|
45 <i>No topics available.</i>
|
bgneal@111
|
46 </td>
|
bgneal@111
|
47 </tr>
|
bgneal@111
|
48 {% endfor %}
|
bgneal@111
|
49 </tbody>
|
bgneal@111
|
50 </table>
|
bgneal@111
|
51 {{ page_nav }}
|
bgneal@111
|
52 <div class="forum-mod-controls">
|
bgneal@111
|
53 <input type="submit" value="Toggle Sticky" name="sticky" />
|
bgneal@111
|
54 <input type="submit" value="Toggle Lock" name="lock" />
|
bgneal@111
|
55 <input type="submit" value="Delete" name="delete" /><br />
|
bgneal@111
|
56 <input type="submit" value="Move To:" name="move" />
|
bgneal@111
|
57 {{ form }}
|
bgneal@111
|
58 <input type="hidden" name="page" value="{{ page.number }}" />
|
bgneal@111
|
59 </div>
|
bgneal@111
|
60 </form>
|
bgneal@111
|
61 </div>
|
bgneal@111
|
62 {% endblock %}
|