Mercurial > public > sg101
diff gpp/templates/forums/post_list.html @ 169:7071b196ddd5
Implement #54; add a forum query to display a user's posts.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 31 Jan 2010 04:52:08 +0000 |
parents | |
children | 21d2ca3b4bf7 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gpp/templates/forums/post_list.html Sun Jan 31 04:52:08 2010 +0000 @@ -0,0 +1,30 @@ +{% extends 'base.html' %} +{% load forum_tags %} +{% block title %}Forums: {{ title }}{% endblock %} +{% block content %} +<h2>Forums: {{ title }}</h2> +<h3> +<a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> » {{ title }} +</h3> +<div class="forum-block"> +{{ page_nav }} +{% if page.object_list %} +<dl id="forums-post-list"> + {% for post in page.object_list %} + <dt> + <a href="{{ post.topic.forum.get_absolute_url }}" title="Visit Forum">{{ post.topic.forum.name }}</a> » + <a href="{{ post.topic.get_absolute_url }}" title="Visit Topic">{{ post.topic.name }}</a> » + <a href="{{ post.get_absolute_url }}" title="View Post in Context"> + {% forum_date post.creation_date user %}</a> + </dt> + <dd class="{% cycle 'odd' 'even' %}"> + {{ post.html|safe }} + </dd> + {% endfor %} +</dl> +{% else %} + <h4>No posts found.</h4> +{% endif %} +{{ page_nav }} +</div> +{% endblock %}