comparison 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
comparison
equal deleted inserted replaced
193:fa7d82bfb100 194:6a5549c2efb5
10 </h3> 10 </h3>
11 11
12 <div class="forum-block"> 12 <div class="forum-block">
13 {% if user.is_authenticated %} 13 {% if user.is_authenticated %}
14 <a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a> &bull; 14 <a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a> &bull;
15 <form action="{% url forums-catchup slug=forum.slug %}" method="post" style="display:inline"> 15 <form action="{% url forums-catchup slug=forum.slug %}" method="post" style="display:inline">{% csrf_token %}
16 <input type="submit" value="Mark All Topics Read" /> 16 <input type="submit" value="Mark All Topics Read" />
17 </form> 17 </form>
18 {% endif %} 18 {% endif %}
19 {{ page_nav }} 19 {{ page_nav }}
20 <table class="forum-index-table"> 20 <table class="forum-index-table">
54 </tbody> 54 </tbody>
55 </table> 55 </table>
56 {{ page_nav }} 56 {{ page_nav }}
57 {% if user.is_authenticated %} 57 {% if user.is_authenticated %}
58 <a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a> &bull; 58 <a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a> &bull;
59 <form action="{% url forums-catchup slug=forum.slug %}" method="post" style="display:inline"> 59 <form action="{% url forums-catchup slug=forum.slug %}" method="post" style="display:inline">{% csrf_token %}
60 <input type="submit" value="Mark All Topics Read" /> 60 <input type="submit" value="Mark All Topics Read" />
61 </form> 61 </form>
62 {% endif %} 62 {% endif %}
63 {% if can_moderate %} 63 {% if can_moderate %}
64 <p><a href="{% url forums-mod_forum slug=forum.slug %}">Moderate this forum</a></p> 64 <p><a href="{% url forums-mod_forum slug=forum.slug %}">Moderate this forum</a></p>