annotate gpp/templates/forums/index.html @ 243:7ddd60164245

For #93: remove the page number from the URL. This commit fixes the shoutbox and member list. It also contains a change to downloads to add pagination to the new, popular, and highest rated views.
author Brian Neal <bgneal@gmail.com>
date Thu, 16 Sep 2010 01:06:43 +0000
parents a46788862737
children 307a74e28112
rev   line source
bgneal@81 1 {% extends 'base.html' %}
bgneal@164 2 {% load cache %}
bgneal@84 3 {% load forum_tags %}
bgneal@227 4 {% load core_tags %}
bgneal@170 5 {% block custom_head %}
bgneal@170 6 {% for feed in feeds %}
bgneal@170 7 <link rel="alternate" type="application/rss+xml" title="{{ feed.name }}" href="{{ feed.feed }}" />
bgneal@170 8 {% endfor %}
bgneal@170 9 {% endblock %}
bgneal@81 10 {% block title %}Forums{% endblock %}
bgneal@81 11 {% block content %}
bgneal@170 12 <h2>Forums <a href="/feeds/forums/"><img src="{{ MEDIA_URL }}icons/feed.png" alt="Forums Feed" title="Forums Feed" /></a></h2>
bgneal@81 13
bgneal@167 14 <form action="." method="get" id="forum-query-form">
bgneal@167 15 <select name="query">
bgneal@167 16 <option value="unread">Show topics with unread posts</option>
bgneal@167 17 <option value="mine">Show my posts</option>
bgneal@167 18 <option value="unanswered">Show unanswered posts</option>
bgneal@232 19 <option value="favorites">Show my favorite topics</option>
bgneal@232 20 <option value="subscriptions">Show my subscribed topics</option>
bgneal@167 21 </select><input type="submit" value="Go" />
bgneal@167 22 </form>
bgneal@167 23
bgneal@81 24 <div class="forum-block">
bgneal@81 25 {% for iter in cats %}
bgneal@81 26 <h3>{{ iter.cat }}</h3>
bgneal@81 27 <table class="forum-index-table">
bgneal@81 28 <thead>
bgneal@81 29 <tr>
bgneal@81 30 <th class="forum-title">Forum</th>
bgneal@81 31 <th class="forum-topics">Topics</th>
bgneal@81 32 <th class="forum-posts">Posts</th>
bgneal@81 33 <th class="forum-last_post">Last Post</th>
bgneal@81 34 </tr>
bgneal@81 35 </thead>
bgneal@81 36 <tbody>
bgneal@81 37 {% for forum in iter.forums %}
bgneal@94 38 <tr class="{% cycle 'odd' 'even' %}">
bgneal@113 39 <td>
bgneal@113 40 {% if forum.has_unread %}
bgneal@113 41 <img src="{{ MEDIA_URL }}icons/new.png" alt="New Posts" title="New Posts" class="forums-topic-icon" />
bgneal@113 42 {% endif %}
bgneal@170 43 <h4><a href="{{ forum.get_absolute_url }}">{{ forum.name }}</a>
bgneal@170 44 {% if forum.has_feed %}
bgneal@230 45 <a href="/feeds/forums/{{ forum.slug }}/">
bgneal@170 46 <img src="{{ MEDIA_URL }}icons/feed.png" alt="RSS Feed" title="Feed for this forum" /></a>
bgneal@170 47 {% endif %}</h4>
bgneal@81 48 <p>{{ forum.description }}</p></td>
bgneal@81 49 <td class="forum-topics">{{ forum.topic_count }}</td>
bgneal@81 50 <td class="forum-posts">{{ forum.post_count }}</td>
bgneal@120 51 <td class="forum-last_post">{% last_post_info forum.last_post %}</td>
bgneal@81 52 </tr>
bgneal@81 53 {% endfor %}
bgneal@81 54 </tbody>
bgneal@81 55 </table>
bgneal@81 56 {% endfor %}
bgneal@164 57 {% cache 900 forum-stats-block %}
bgneal@164 58 {% forum_stats %}
bgneal@164 59 {% endcache %}
bgneal@160 60 {% whos_online %}
bgneal@120 61 <p>{% current_forum_time user %}</p>
bgneal@81 62 </div>
bgneal@81 63 {% endblock %}