Mercurial > public > sg101
diff gpp/templates/forums/index.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 | 88b2b9cb8c1f |
children | a1b03de20345 |
line wrap: on
line diff
--- a/gpp/templates/forums/index.html Sun Mar 06 21:50:10 2011 +0000 +++ b/gpp/templates/forums/index.html Mon Mar 07 01:22:49 2011 +0000 @@ -31,7 +31,7 @@ <tr class="{% cycle 'odd' 'even' %}"> <td> {% if forum.has_unread %} - <img src="{{ STATIC_URL }}icons/new.png" alt="New Posts" title="New Posts" class="forums-topic-icon" /> + <a href="{{ forum.get_absolute_url }}"><img src="{{ STATIC_URL }}icons/new.png" alt="New Posts" title="New Posts" class="forums-topic-icon" /></a> {% endif %} <h4><a href="{{ forum.get_absolute_url }}">{{ forum.name }}</a></h4> <p>{{ forum.description }}</p>