Mercurial > public > sg101
view gpp/templates/forums/index.html @ 131:5b69d6e01fd4
Creating a common way to display the smiley and markdown help dialogs for a markItUp textarea input form. Converted gcalendar over to it as a trial.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 26 Nov 2009 22:47:17 +0000 |
parents | f8f4514b806a |
children | 2eb3984ccb15 |
line wrap: on
line source
{% extends 'base.html' %} {% load forum_tags %} {% block title %}Forums{% endblock %} {% block content %} <h2>Forums</h2> <div class="forum-block"> {% for iter in cats %} <h3>{{ iter.cat }}</h3> <table class="forum-index-table"> <thead> <tr> <th class="forum-title">Forum</th> <th class="forum-topics">Topics</th> <th class="forum-posts">Posts</th> <th class="forum-last_post">Last Post</th> </tr> </thead> <tbody> {% for forum in iter.forums %} <tr class="{% cycle 'odd' 'even' %}"> <td> {% if forum.has_unread %} <img src="{{ MEDIA_URL }}icons/new.png" alt="New Posts" title="New Posts" class="forums-topic-icon" /> {% endif %} <h4><a href="{{ forum.get_absolute_url }}">{{ forum.name }}</a></h4> <p>{{ forum.description }}</p></td> <td class="forum-topics">{{ forum.topic_count }}</td> <td class="forum-posts">{{ forum.post_count }}</td> <td class="forum-last_post">{% last_post_info forum.last_post %}</td> </tr> {% endfor %} </tbody> </table> {% endfor %} <p>{% current_forum_time user %}</p> </div> {% endblock %}