annotate 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
rev   line source
gremmie@1 1 <dt>
bgneal@165 2 <h4>{{ link.title }}</h4>
gremmie@1 3 </dt>
gremmie@1 4 <dd>
gremmie@1 5 <p>{{ link.description }}</p>
bgneal@194 6 <form action="{% url weblinks-visit link.id %}" method="post">{% csrf_token %}
gremmie@1 7 <table class="link-stats">
gremmie@1 8 <tr>
bgneal@165 9 <th>Date Added:</th><td>{{ link.date_added|date:"M d, Y" }}</td>
gremmie@1 10 <th>Hits:</th><td>{{ link.hits }}</td>
bgneal@3 11 <td>
bgneal@165 12 <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>
bgneal@3 13 </td>
gremmie@1 14 </tr>
bgneal@165 15 <tr><td><input type="submit" value="Visit Site" /></td></tr>
gremmie@1 16 </table>
bgneal@165 17 </form>
gremmie@1 18 <br />
gremmie@1 19 </dd>