bgneal@82
|
1 {% extends 'base.html' %}
|
bgneal@84
|
2 {% load forum_tags %}
|
bgneal@82
|
3 {% block title %}Forums: {{ forum.name }}{% endblock %}
|
bgneal@82
|
4 {% block content %}
|
bgneal@82
|
5 <h2>Forums: {{ forum.name }}</h2>
|
bgneal@82
|
6
|
bgneal@82
|
7 <h3>
|
bgneal@82
|
8 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> »
|
bgneal@82
|
9 <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a>
|
bgneal@82
|
10 </h3>
|
bgneal@82
|
11
|
bgneal@82
|
12 <div class="forum-block">
|
bgneal@113
|
13 {% if user.is_authenticated %}
|
bgneal@113
|
14 <a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a> •
|
bgneal@113
|
15 <form action="{% url forums-catchup slug=forum.slug %}" method="post" style="display:inline">
|
bgneal@113
|
16 <input type="submit" value="Mark All Topics Read" />
|
bgneal@113
|
17 </form>
|
bgneal@113
|
18 {% endif %}
|
bgneal@97
|
19 {{ page_nav }}
|
bgneal@82
|
20 <table class="forum-index-table">
|
bgneal@82
|
21 <thead>
|
bgneal@82
|
22 <tr>
|
bgneal@82
|
23 <th class="forum-index_title">Topics</th>
|
bgneal@82
|
24 <th class="forum-index_replies">Replies</th>
|
bgneal@82
|
25 <th class="forum-index_author">Author</th>
|
bgneal@82
|
26 <th class="forum-index_views">Views</th>
|
bgneal@82
|
27 <th class="forum-index_last_post">Last Post</th>
|
bgneal@82
|
28 </tr>
|
bgneal@82
|
29 </thead>
|
bgneal@82
|
30 <tbody>
|
bgneal@93
|
31 {% for topic in page.object_list %}
|
bgneal@93
|
32 <tr class="{% cycle 'odd' 'even' %}">
|
bgneal@103
|
33 <td>{% if topic.sticky %}<img src="{{ MEDIA_URL }}icons/asterisk_orange.png" alt="Sticky" title="Sticky" class="forums-topic-icon" />{% endif %}
|
bgneal@103
|
34 {% if topic.locked %}<img src="{{ MEDIA_URL }}icons/lock.png" alt="Locked" title="Locked"
|
bgneal@102
|
35 class="forums-topic-icon" />{% endif %}
|
bgneal@102
|
36 <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td>
|
bgneal@83
|
37 <td class="forum-index_replies">{{ topic.reply_count }}</td>
|
bgneal@85
|
38 <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
|
39 <td class="forum-index_views">{{ topic.view_count }}</td>
|
bgneal@82
|
40 <td class="forum-index_last_post">
|
bgneal@94
|
41 {% last_post_info topic.last_post MEDIA_URL %}
|
bgneal@82
|
42 </td>
|
bgneal@82
|
43 </tr>
|
bgneal@82
|
44 {% empty %}
|
bgneal@82
|
45 <tr>
|
bgneal@111
|
46 <td colspan="5">
|
bgneal@82
|
47 <i>No topics available.</i>
|
bgneal@82
|
48 </td>
|
bgneal@82
|
49 </tr>
|
bgneal@82
|
50 {% endfor %}
|
bgneal@82
|
51 </tbody>
|
bgneal@82
|
52 </table>
|
bgneal@97
|
53 {{ page_nav }}
|
bgneal@113
|
54 {% if user.is_authenticated %}
|
bgneal@113
|
55 <a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a> •
|
bgneal@113
|
56 <form action="{% url forums-catchup slug=forum.slug %}" method="post" style="display:inline">
|
bgneal@113
|
57 <input type="submit" value="Mark All Topics Read" />
|
bgneal@113
|
58 </form>
|
bgneal@113
|
59 {% endif %}
|
bgneal@113
|
60 {% if can_moderate %}
|
bgneal@111
|
61 <p><a href="{% url forums-mod_forum slug=forum.slug %}">Moderate this forum</a></p>
|
bgneal@113
|
62 {% endif %}
|
bgneal@82
|
63 </div>
|
bgneal@82
|
64 {% endblock %}
|