Mercurial > public > sg101
comparison gpp/templates/weblinks/link.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 | 952e05cb3d80 |
children | 0e7c7231dea9 |
comparison
equal
deleted
inserted
replaced
193:fa7d82bfb100 | 194:6a5549c2efb5 |
---|---|
1 <dt> | 1 <dt> |
2 <h4>{{ link.title }}</h4> | 2 <h4>{{ link.title }}</h4> |
3 </dt> | 3 </dt> |
4 <dd> | 4 <dd> |
5 <p>{{ link.description }}</p> | 5 <p>{{ link.description }}</p> |
6 <form action="{% url weblinks-visit link.id %}" method="post"> | 6 <form action="{% url weblinks-visit link.id %}" method="post">{% csrf_token %} |
7 <table class="link-stats"> | 7 <table class="link-stats"> |
8 <tr> | 8 <tr> |
9 <th>Date Added:</th><td>{{ link.date_added|date:"M d, Y" }}</td> | 9 <th>Date Added:</th><td>{{ link.date_added|date:"M d, Y" }}</td> |
10 <th>Hits:</th><td>{{ link.hits }}</td> | 10 <th>Hits:</th><td>{{ link.hits }}</td> |
11 <td> | 11 <td> |