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