Mercurial > public > sg101
annotate gpp/templates/ygroup/thread_list.html @ 426:c8148cf11a79
Show number of posts in a topic when displaying forum topic search results. Fixing #212.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 26 Apr 2011 01:04:38 +0000 |
parents | 0c18dfb1da1c |
children |
rev | line source |
---|---|
bgneal@323 | 1 {% extends 'base.html' %} |
bgneal@323 | 2 {% load url from future %} |
bgneal@323 | 3 {% block title %}Yahoo Group Archives{% endblock %} |
bgneal@323 | 4 {% block custom_css %} |
bgneal@323 | 5 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/pagination.css" /> |
bgneal@323 | 6 {% endblock %} |
bgneal@323 | 7 {% block content %} |
bgneal@323 | 8 <h2>Yahoo Group Archives » Page {{ page_obj.number }}</h2> |
bgneal@323 | 9 <p> |
bgneal@323 | 10 SurfGuitar101.com began as a Yahoo Group on October 31, 2001. It ran until August, 2007 when this site officially replaced it. On these pages you'll find the archived messages of our original group. You can also search through these messages via our <a href="{% url 'haystack_search' %}">search page</a>. |
bgneal@323 | 11 </p> |
bgneal@323 | 12 {% include "ygroup/pagination.html" %} |
bgneal@323 | 13 <table> |
bgneal@323 | 14 <tr><th>Title</th><th>Author</th><th>Posts</th><th>Date</th></tr> |
bgneal@323 | 15 {% for thread in page_obj.object_list %} |
bgneal@323 | 16 <tr> |
bgneal@323 | 17 <td><a href="{{ thread.get_absolute_url }}">{{ thread.title }}</a></td> |
bgneal@323 | 18 <td>{{ thread.poster }}</td> |
bgneal@323 | 19 <td>{{ thread.post_count }}</td> |
bgneal@323 | 20 <td>{{ thread.creation_date|date:"d M Y" }}</td> |
bgneal@323 | 21 </tr> |
bgneal@323 | 22 {% endfor %} |
bgneal@323 | 23 </table> |
bgneal@323 | 24 {% include "ygroup/pagination.html" %} |
bgneal@323 | 25 {% endblock %} |