Mercurial > public > sg101
view gpp/templates/forums/forum_index.html @ 497:9894f8cbb931
Adding Ariel's (DreadInBabylon) awesome new news topic icons.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 22 Nov 2011 01:25:08 +0000 |
parents | 3c48a555298d |
children |
line wrap: on
line source
{% extends 'base.html' %} {% load url from future %} {% load forum_tags %} {% load bio_tags %} {% block custom_head %} {% if feed %} <link rel="alternate" type="application/rss+xml" title="{{ feed.name }}" href="{{ feed.feed }}" /> {% endif %} {% include "forums/jump_box.js" %} {% endblock %} {% block title %}Forums: {{ forum.name }}{% endblock %} {% block content %} {% forum_navigation forum %} <div class="forum-block"> {% if user.is_authenticated %} <a href="{% url 'forums-new_topic' slug=forum.slug %}">New Topic</a> • <form action="{% url 'forums-catchup' slug=forum.slug %}" method="post" style="display:inline">{% csrf_token %} <input type="submit" value="Mark All Topics Read" /> </form> {% endif %} {{ page_nav }} <table class="forum-index-table"> <thead> <tr> <th class="forum-index_title">Topics</th> <th class="forum-index_replies">Replies</th> <th class="forum-index_author">Author</th> <th class="forum-index_views">Views</th> <th class="forum-index_last_post">Last Post</th> </tr> </thead> <tbody> {% for topic in page.object_list %} <tr class="{% cycle 'odd' 'even' %}"> <td> {% topic_icons topic %} <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4> {% if topic.page_range %} {% topic_page_range topic %} {% endif %} </td> <td class="forum-index_replies">{{ topic.reply_count }}</td> <td class="forum-index_author">{% profile_link topic.user.username %}</td> <td class="forum-index_views">{{ topic.view_count }}</td> <td class="forum-index_last_post"> {% last_post_info topic.last_post %} </td> </tr> {% empty %} <tr> <td colspan="5"> <i>No topics available.</i> </td> </tr> {% endfor %} </tbody> </table> {{ page_nav }} {% include 'forums/jump_box.html' %} {% if user.is_authenticated %} <a href="{% url 'forums-new_topic' slug=forum.slug %}">New Topic</a> • <form action="{% url 'forums-catchup' slug=forum.slug %}" method="post" style="display:inline">{% csrf_token %} <input type="submit" value="Mark All Topics Read" /> </form> {% endif %} {% if can_moderate %} <p><a href="{% url 'forums-mod_forum' slug=forum.slug %}">Moderate this forum</a></p> {% endif %} {% current_forum_time user %} </div> {% endblock %}