Mercurial > public > sg101
comparison gpp/templates/forums/topic_list.html @ 374:dd673fae508d
Fixing #156. Making it possible to goto the first unread post in a thread. Made the 'New' icon a link; when displayed on a topic, takes you to the first unread post.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 07 Mar 2011 01:22:49 +0000 |
parents | daa2916f5b34 |
children | 957955279a15 |
comparison
equal
deleted
inserted
replaced
373:54cbdef18cf4 | 374:dd673fae508d |
---|---|
25 <td class="col-0"> | 25 <td class="col-0"> |
26 <h4><a href="{{ topic.forum.get_absolute_url }}">{{ topic.forum.name }}</a></h4> | 26 <h4><a href="{{ topic.forum.get_absolute_url }}">{{ topic.forum.name }}</a></h4> |
27 </td> | 27 </td> |
28 <td class="col-1"> | 28 <td class="col-1"> |
29 {% topic_icons topic %} | 29 {% topic_icons topic %} |
30 <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4> | 30 <h4>{% if unread %}<a href="{% url 'forums-topic_unread' id=topic.id %}">{% else %}<a href="{{ topic.get_absolute_url }}">{% endif %}{{ topic.name }}</a></h4> |
31 {% if topic.page_range %} | 31 {% if topic.page_range %} |
32 {% topic_page_range topic %} | 32 {% topic_page_range topic %} |
33 {% endif %} | 33 {% endif %} |
34 </td> | 34 </td> |
35 <td class="col-2"> | 35 <td class="col-2"> |