bgneal@167: {% extends 'base.html' %}
bgneal@310: {% load url from future %}
bgneal@167: {% load forum_tags %}
bgneal@167: {% block title %}Forums: {{ title }}{% endblock %}
bgneal@280: {% block custom_js %}
bgneal@280: {% include "forums/forum_query.js" %}
bgneal@280: {% endblock %}
bgneal@167: {% block content %}
bgneal@283: {% forum_navigation title %}
bgneal@280: {% include "forums/forum_query.html" %}
bgneal@167: <div class="forum-block">
bgneal@167: {{ page_nav }}
bgneal@167: <table class="forum-topic-table">
bgneal@167:    <thead>
bgneal@167:       <th class="col-0">Forum</th>
bgneal@167:       <th class="col-1">Topic</th>
bgneal@167:       <th class="col-2">Author</th>
bgneal@167:       <th class="col-3">Replies</th>
bgneal@167:       <th class="col-4">Views</th>
bgneal@167:       <th class="col-5">Last Post</th>
bgneal@167:    </thead>
bgneal@167:    <tbody>
bgneal@167:    {% for topic in page.object_list %}
bgneal@167:       <tr class="{% cycle 'odd' 'even' %}">
bgneal@167:          <td class="col-0">
bgneal@167:             <h4><a href="{{ topic.forum.get_absolute_url }}">{{ topic.forum.name }}</a></h4>
bgneal@167:          </td>
bgneal@167:          <td class="col-1">
bgneal@167:             {% topic_icons topic %}
bgneal@374:             <h4>{% if unread %}<a href="{% url 'forums-topic_unread' id=topic.id %}">{% else %}<a href="{{ topic.get_absolute_url }}">{% endif %}{{ topic.name }}</a></h4>
bgneal@167:             {% if topic.page_range %}
bgneal@167:                {% topic_page_range topic %}
bgneal@167:             {% endif %}
bgneal@167:          </td>
bgneal@167:          <td class="col-2">
bgneal@310:             <a href="{% url 'bio-view_profile' username=topic.user.username %}" title="View profile for {{ topic.user.username }}">{{ topic.user.username }}</a>
bgneal@167:          </td>
bgneal@167:          <td class="col-3">
bgneal@167:             {{ topic.reply_count }}
bgneal@167:          </td>
bgneal@167:          <td class="col-4">
bgneal@167:             {{ topic.view_count }}
bgneal@167:          </td>
bgneal@167:          <td class="col-5">
bgneal@167:             {% last_post_info topic.last_post %}
bgneal@167:          </td>
bgneal@167:       </tr>
bgneal@167:    {% empty %}
bgneal@167:       <tr>
bgneal@167:          <td colspan="6" class="info">
bgneal@167:             <em>No topics meet your search criteria.</em>
bgneal@167:          </td>
bgneal@167:       </tr>
bgneal@167:    {% endfor %}
bgneal@167:    </tbody>
bgneal@167: </table>
bgneal@384: 
bgneal@384: {% if unread and page.object_list %}
bgneal@384: <form action="{% url 'forums-catchup_all' %}" method="post">{% csrf_token %}
bgneal@384:    <input type="submit" value="Mark All Forums Read" />
bgneal@384: </form>
bgneal@384: <br />
bgneal@384: 
bgneal@384: {% endif %}
bgneal@167: {{ page_nav }}
bgneal@167: </div>
bgneal@167: {% endblock %}