Mercurial > public > sg101
annotate gpp/templates/weblinks/link.html @ 165:952e05cb3d80
Implement #49; use POST for updating link hit counts. Also refactored a bit and use javascript to report broken links.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 03 Jan 2010 04:15:14 +0000 |
parents | 33f73b7bd305 |
children | 6a5549c2efb5 |
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@165 | 6 <form action="{% url weblinks-visit link.id %}" method="post"> |
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> |