bgneal@81: {% extends 'base.html' %} bgneal@164: {% load cache %} bgneal@84: {% load forum_tags %} bgneal@170: {% block custom_head %} bgneal@170: {% for feed in feeds %} bgneal@170: <link rel="alternate" type="application/rss+xml" title="{{ feed.name }}" href="{{ feed.feed }}" /> bgneal@170: {% endfor %} bgneal@170: {% endblock %} bgneal@81: {% block title %}Forums{% endblock %} bgneal@81: {% block content %} bgneal@170: <h2>Forums <a href="/feeds/forums/"><img src="{{ MEDIA_URL }}icons/feed.png" alt="Forums Feed" title="Forums Feed" /></a></h2> bgneal@81: bgneal@167: <form action="." method="get" id="forum-query-form"> bgneal@167: <select name="query"> bgneal@167: <option value="unread">Show topics with unread posts</option> bgneal@167: <option value="mine">Show my posts</option> bgneal@167: <option value="unanswered">Show unanswered posts</option> bgneal@167: </select><input type="submit" value="Go" /> bgneal@167: </form> bgneal@167: bgneal@81: <div class="forum-block"> bgneal@81: {% for iter in cats %} bgneal@81: <h3>{{ iter.cat }}</h3> bgneal@81: <table class="forum-index-table"> bgneal@81: <thead> bgneal@81: <tr> bgneal@81: <th class="forum-title">Forum</th> bgneal@81: <th class="forum-topics">Topics</th> bgneal@81: <th class="forum-posts">Posts</th> bgneal@81: <th class="forum-last_post">Last Post</th> bgneal@81: </tr> bgneal@81: </thead> bgneal@81: <tbody> bgneal@81: {% for forum in iter.forums %} bgneal@94: <tr class="{% cycle 'odd' 'even' %}"> bgneal@113: <td> bgneal@113: {% if forum.has_unread %} bgneal@113: <img src="{{ MEDIA_URL }}icons/new.png" alt="New Posts" title="New Posts" class="forums-topic-icon" /> bgneal@113: {% endif %} bgneal@170: <h4><a href="{{ forum.get_absolute_url }}">{{ forum.name }}</a> bgneal@170: {% if forum.has_feed %} bgneal@170: <a href="/feeds/forums/{{ forum.slug }}"> bgneal@170: <img src="{{ MEDIA_URL }}icons/feed.png" alt="RSS Feed" title="Feed for this forum" /></a> bgneal@170: {% endif %}</h4> bgneal@81: <p>{{ forum.description }}</p></td> bgneal@81: <td class="forum-topics">{{ forum.topic_count }}</td> bgneal@81: <td class="forum-posts">{{ forum.post_count }}</td> bgneal@120: <td class="forum-last_post">{% last_post_info forum.last_post %}</td> bgneal@81: </tr> bgneal@81: {% endfor %} bgneal@81: </tbody> bgneal@81: </table> bgneal@81: {% endfor %} bgneal@164: {% cache 900 forum-stats-block %} bgneal@164: {% forum_stats %} bgneal@164: {% endcache %} bgneal@160: {% whos_online %} bgneal@120: <p>{% current_forum_time user %}</p> bgneal@81: </div> bgneal@81: {% endblock %}