diff gpp/templates/forums/topic_list.html @ 384:957955279a15

Fixing #188; improve number of SQL queries for mark all forums read and add the button on the view topics with unread posts view.
author Brian Neal <bgneal@gmail.com>
date Wed, 16 Mar 2011 01:49:10 +0000
parents dd673fae508d
children 3c48a555298d
line wrap: on
line diff
--- a/gpp/templates/forums/topic_list.html	Wed Mar 16 01:19:45 2011 +0000
+++ b/gpp/templates/forums/topic_list.html	Wed Mar 16 01:49:10 2011 +0000
@@ -54,6 +54,14 @@
    {% endfor %}
    </tbody>
 </table>
+
+{% if unread and page.object_list %}
+<form action="{% url 'forums-catchup_all' %}" method="post">{% csrf_token %}
+   <input type="submit" value="Mark All Forums Read" />
+</form>
+<br />
+
+{% endif %}
 {{ page_nav }}
 </div>
 {% endblock %}