Mercurial > public > sg101
annotate gpp/templates/forums/post_list.html @ 280:21d2ca3b4bf7
Fixing #121. The forum query pulldown should appear on all forum query pages for consistency.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 03 Oct 2010 20:44:09 +0000 |
parents | 7071b196ddd5 |
children | 593fb6dbd449 |
rev | line source |
---|---|
bgneal@169 | 1 {% extends 'base.html' %} |
bgneal@169 | 2 {% load forum_tags %} |
bgneal@169 | 3 {% block title %}Forums: {{ title }}{% endblock %} |
bgneal@280 | 4 {% block custom_js %} |
bgneal@280 | 5 {% include "forums/forum_query.js" %} |
bgneal@280 | 6 {% endblock %} |
bgneal@169 | 7 {% block content %} |
bgneal@169 | 8 <h2>Forums: {{ title }}</h2> |
bgneal@169 | 9 <h3> |
bgneal@169 | 10 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> » {{ title }} |
bgneal@169 | 11 </h3> |
bgneal@280 | 12 {% include "forums/forum_query.html" %} |
bgneal@169 | 13 <div class="forum-block"> |
bgneal@169 | 14 {{ page_nav }} |
bgneal@169 | 15 {% if page.object_list %} |
bgneal@169 | 16 <dl id="forums-post-list"> |
bgneal@169 | 17 {% for post in page.object_list %} |
bgneal@169 | 18 <dt> |
bgneal@169 | 19 <a href="{{ post.topic.forum.get_absolute_url }}" title="Visit Forum">{{ post.topic.forum.name }}</a> » |
bgneal@169 | 20 <a href="{{ post.topic.get_absolute_url }}" title="Visit Topic">{{ post.topic.name }}</a> » |
bgneal@169 | 21 <a href="{{ post.get_absolute_url }}" title="View Post in Context"> |
bgneal@169 | 22 {% forum_date post.creation_date user %}</a> |
bgneal@169 | 23 </dt> |
bgneal@169 | 24 <dd class="{% cycle 'odd' 'even' %}"> |
bgneal@169 | 25 {{ post.html|safe }} |
bgneal@169 | 26 </dd> |
bgneal@169 | 27 {% endfor %} |
bgneal@169 | 28 </dl> |
bgneal@169 | 29 {% else %} |
bgneal@169 | 30 <h4>No posts found.</h4> |
bgneal@169 | 31 {% endif %} |
bgneal@169 | 32 {{ page_nav }} |
bgneal@169 | 33 </div> |
bgneal@169 | 34 {% endblock %} |