comparison 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
comparison
equal deleted inserted replaced
168:e6d4dfdfbc64 169:7071b196ddd5
1 {% extends 'base.html' %}
2 {% load forum_tags %}
3 {% block title %}Forums: {{ title }}{% endblock %}
4 {% block content %}
5 <h2>Forums: {{ title }}</h2>
6 <h3>
7 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> &raquo; {{ title }}
8 </h3>
9 <div class="forum-block">
10 {{ page_nav }}
11 {% if page.object_list %}
12 <dl id="forums-post-list">
13 {% for post in page.object_list %}
14 <dt>
15 <a href="{{ post.topic.forum.get_absolute_url }}" title="Visit Forum">{{ post.topic.forum.name }}</a> &raquo;
16 <a href="{{ post.topic.get_absolute_url }}" title="Visit Topic">{{ post.topic.name }}</a> &raquo;
17 <a href="{{ post.get_absolute_url }}" title="View Post in Context">
18 {% forum_date post.creation_date user %}</a>
19 </dt>
20 <dd class="{% cycle 'odd' 'even' %}">
21 {{ post.html|safe }}
22 </dd>
23 {% endfor %}
24 </dl>
25 {% else %}
26 <h4>No posts found.</h4>
27 {% endif %}
28 {{ page_nav }}
29 </div>
30 {% endblock %}