Mercurial > public > sg101
view gpp/templates/weblinks/link.html @ 20:c0d0779b266f
Created a template tag for the latest weblinks: latest_weblinks. This necessitated adding a get_absolute_url function for the Link model along with a new view for it.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 19 Apr 2009 20:41:37 +0000 |
parents | 33f73b7bd305 |
children | 952e05cb3d80 |
line wrap: on
line source
<dt> <a href="{% url weblinks.views.visit link.id %}" target="_blank">{{ link.title }}</a> </dt> <dd> <p>{{ link.description }}</p> <table class="link-stats"> <tr> <th>Date:</th><td>{{ link.date_added|date:"M d, Y" }}</td> <th>Hits:</th><td>{{ link.hits }}</td> <td> <a href="{% url weblinks.views.report_link link.id %}"><img src="{{ MEDIA_URL }}icons/link_break.png" alt="Broken Link" title="Report broken link" /></a> </td> </tr> </table> <br /> </dd>