view 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
line wrap: on
line source
<dt>
<h4>{{ link.title }}</h4>
</dt>
<dd>
<p>{{ link.description }}</p>
<form action="{% url weblinks-visit link.id %}" method="post">{% csrf_token %}
<table class="link-stats">
   <tr>
      <th>Date Added:</th><td>{{ link.date_added|date:"M d, Y" }}</td>
      <th>Hits:</th><td>{{ link.hits }}</td>
      <td>
         <a href="#" class="weblinks-broken" id="link-{{ link.id }}"><img src="{{ MEDIA_URL }}icons/link_break.png" alt="Broken Link" title="Report this link as broken" /></a>
      </td>
   </tr>
   <tr><td><input type="submit" value="Visit Site" /></td></tr>
</table>
</form>
<br />
</dd>