Mercurial > public > sg101
diff gpp/templates/forums/forum_index.html @ 194:6a5549c2efb5
Implement #62, add support for CSRF protection.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 03 Apr 2010 20:00:56 +0000 |
parents | cf9f9d4c4d54 |
children | 307a74e28112 |
line wrap: on
line diff
--- a/gpp/templates/forums/forum_index.html Sat Apr 03 02:15:04 2010 +0000 +++ b/gpp/templates/forums/forum_index.html Sat Apr 03 20:00:56 2010 +0000 @@ -12,7 +12,7 @@ <div class="forum-block"> {% if user.is_authenticated %} <a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a> • -<form action="{% url forums-catchup slug=forum.slug %}" method="post" style="display:inline"> +<form action="{% url forums-catchup slug=forum.slug %}" method="post" style="display:inline">{% csrf_token %} <input type="submit" value="Mark All Topics Read" /> </form> {% endif %} @@ -56,7 +56,7 @@ {{ page_nav }} {% if user.is_authenticated %} <a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a> • -<form action="{% url forums-catchup slug=forum.slug %}" method="post" style="display:inline"> +<form action="{% url forums-catchup slug=forum.slug %}" method="post" style="display:inline">{% csrf_token %} <input type="submit" value="Mark All Topics Read" /> </form> {% endif %}