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