bgneal@111: {% extends 'base.html' %}
bgneal@310: {% load url from future %}
bgneal@492: {% load bio_tags %}
bgneal@111: {% load forum_tags %}
bgneal@111: {% block title %}Moderate Forum: {{ forum.name }}{% endblock %}
bgneal@112: {% block custom_js %}
bgneal@312: <script type="text/javascript" src="{{ STATIC_URL }}js/forums_mod.js"></script>
bgneal@112: {% endblock %}
bgneal@111: {% block content %}
bgneal@283: {% forum_navigation forum "Moderate Forum" %}
bgneal@111: 
bgneal@111: <div class="forum-block">
bgneal@111: {{ page_nav }}
bgneal@194: <form action="." method="post">{% csrf_token %}
bgneal@111: <table class="forum-index-table">
bgneal@111:    <thead>
bgneal@111:       <tr>
bgneal@111:          <th class="forum-index_title">Topics</th>
bgneal@111:          <th class="forum-index_replies">Replies</th>
bgneal@111:          <th class="forum-index_author">Author</th>
bgneal@111:          <th class="forum-index_last_post">Last Post</th>
bgneal@111:          <th class="forum-index_select">Select<br /><input type="checkbox" id="forums-master-topic" /></th>
bgneal@111:       </tr>
bgneal@111:    </thead>
bgneal@111:    <tbody>
bgneal@111:    {% for topic in page.object_list %}
bgneal@111:       <tr class="{% cycle 'odd' 'even' %}">
bgneal@312:          <td>{% if topic.sticky %}<img src="{{ STATIC_URL }}icons/asterisk_orange.png" alt="Sticky" title="Sticky" class="forums-topic-icon" />{% endif %}
bgneal@312:             {% if topic.locked %}<img src="{{ STATIC_URL }}icons/lock.png" alt="Locked" title="Locked"
bgneal@111:             class="forums-topic-icon" />{% endif %}
bgneal@111:          <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td>
bgneal@111:          <td class="forum-index_replies">{{ topic.reply_count }}</td>
bgneal@492:          <td class="forum-index_author">{% profile_link topic.user.username %}</td>
bgneal@111:          <td class="forum-index_last_post">
bgneal@120:             {% last_post_info topic.last_post %}
bgneal@111:          </td>
bgneal@112:          <td class="forum-index_select"><input type="checkbox" name="topic_ids" value="{{ topic.id }}" class="forums-topic_check" /></td>
bgneal@111:       </tr>
bgneal@111:    {% empty %}
bgneal@111:       <tr>
bgneal@111:          <td colspan="5">
bgneal@111:             <i>No topics available.</i>
bgneal@111:          </td>
bgneal@111:       </tr>
bgneal@111:    {% endfor %}
bgneal@111:    </tbody>
bgneal@111: </table>
bgneal@111: {{ page_nav }}
bgneal@111: <div class="forum-mod-controls">
bgneal@111:    <input type="submit" value="Toggle Sticky" name="sticky" />
bgneal@111:    <input type="submit" value="Toggle Lock" name="lock" />
bgneal@111:    <input type="submit" value="Delete" name="delete" /><br />
bgneal@111:    <input type="submit" value="Move To:" name="move" />
bgneal@111:    {{ form }}
bgneal@111:    <input type="hidden" name="page" value="{{ page.number }}" />
bgneal@111: </div>
bgneal@111: </form>
bgneal@111: </div>
bgneal@111: {% endblock %}