bgneal@82
|
1 {% extends 'base.html' %}
|
bgneal@310
|
2 {% load url from future %}
|
bgneal@84
|
3 {% load forum_tags %}
|
bgneal@263
|
4 {% block custom_head %}
|
bgneal@358
|
5 {% if feed %}
|
bgneal@358
|
6 <link rel="alternate" type="application/rss+xml" title="{{ feed.name }}" href="{{ feed.feed }}" />
|
bgneal@358
|
7 {% endif %}
|
bgneal@358
|
8 {% include "forums/jump_box.js" %}
|
bgneal@263
|
9 {% endblock %}
|
bgneal@82
|
10 {% block title %}Forums: {{ forum.name }}{% endblock %}
|
bgneal@82
|
11 {% block content %}
|
bgneal@283
|
12 {% forum_navigation forum %}
|
bgneal@82
|
13
|
bgneal@82
|
14 <div class="forum-block">
|
bgneal@113
|
15 {% if user.is_authenticated %}
|
bgneal@310
|
16 <a href="{% url 'forums-new_topic' slug=forum.slug %}">New Topic</a> •
|
bgneal@310
|
17 <form action="{% url 'forums-catchup' slug=forum.slug %}" method="post" style="display:inline">{% csrf_token %}
|
bgneal@113
|
18 <input type="submit" value="Mark All Topics Read" />
|
bgneal@113
|
19 </form>
|
bgneal@113
|
20 {% endif %}
|
bgneal@97
|
21 {{ page_nav }}
|
bgneal@82
|
22 <table class="forum-index-table">
|
bgneal@82
|
23 <thead>
|
bgneal@82
|
24 <tr>
|
bgneal@82
|
25 <th class="forum-index_title">Topics</th>
|
bgneal@82
|
26 <th class="forum-index_replies">Replies</th>
|
bgneal@82
|
27 <th class="forum-index_author">Author</th>
|
bgneal@82
|
28 <th class="forum-index_views">Views</th>
|
bgneal@82
|
29 <th class="forum-index_last_post">Last Post</th>
|
bgneal@82
|
30 </tr>
|
bgneal@82
|
31 </thead>
|
bgneal@82
|
32 <tbody>
|
bgneal@93
|
33 {% for topic in page.object_list %}
|
bgneal@93
|
34 <tr class="{% cycle 'odd' 'even' %}">
|
bgneal@114
|
35 <td>
|
bgneal@167
|
36 {% topic_icons topic %}
|
bgneal@161
|
37 <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4>
|
bgneal@161
|
38 {% if topic.page_range %}
|
bgneal@167
|
39 {% topic_page_range topic %}
|
bgneal@161
|
40 {% endif %}
|
bgneal@161
|
41 </td>
|
bgneal@83
|
42 <td class="forum-index_replies">{{ topic.reply_count }}</td>
|
bgneal@310
|
43 <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@82
|
44 <td class="forum-index_views">{{ topic.view_count }}</td>
|
bgneal@82
|
45 <td class="forum-index_last_post">
|
bgneal@120
|
46 {% last_post_info topic.last_post %}
|
bgneal@82
|
47 </td>
|
bgneal@82
|
48 </tr>
|
bgneal@82
|
49 {% empty %}
|
bgneal@82
|
50 <tr>
|
bgneal@111
|
51 <td colspan="5">
|
bgneal@82
|
52 <i>No topics available.</i>
|
bgneal@82
|
53 </td>
|
bgneal@82
|
54 </tr>
|
bgneal@82
|
55 {% endfor %}
|
bgneal@82
|
56 </tbody>
|
bgneal@82
|
57 </table>
|
bgneal@97
|
58 {{ page_nav }}
|
bgneal@358
|
59 {% include 'forums/jump_box.html' %}
|
bgneal@113
|
60 {% if user.is_authenticated %}
|
bgneal@310
|
61 <a href="{% url 'forums-new_topic' slug=forum.slug %}">New Topic</a> •
|
bgneal@310
|
62 <form action="{% url 'forums-catchup' slug=forum.slug %}" method="post" style="display:inline">{% csrf_token %}
|
bgneal@113
|
63 <input type="submit" value="Mark All Topics Read" />
|
bgneal@113
|
64 </form>
|
bgneal@113
|
65 {% endif %}
|
bgneal@113
|
66 {% if can_moderate %}
|
bgneal@310
|
67 <p><a href="{% url 'forums-mod_forum' slug=forum.slug %}">Moderate this forum</a></p>
|
bgneal@113
|
68 {% endif %}
|
bgneal@120
|
69 {% current_forum_time user %}
|
bgneal@82
|
70 </div>
|
bgneal@82
|
71 {% endblock %}
|