Mercurial > public > sg101
annotate gpp/templates/weblinks/link.html @ 368:b76af55aafe4
For #176; cache the output of the latest poll block template tag.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 05 Mar 2011 21:00:00 +0000 |
parents | 88b2b9cb8c1f |
children | 3c48a555298d |
rev | line source |
---|---|
bgneal@310 | 1 {% load url from future %} |
gremmie@1 | 2 <dt> |
bgneal@209 | 3 <h4><a href="{{ link.url }}">{{ link.title }}</a></h4> |
gremmie@1 | 4 </dt> |
gremmie@1 | 5 <dd> |
gremmie@1 | 6 <p>{{ link.description }}</p> |
bgneal@310 | 7 <form action="{% url 'weblinks-visit' link.id %}" method="post">{% csrf_token %} |
gremmie@1 | 8 <table class="link-stats"> |
gremmie@1 | 9 <tr> |
bgneal@310 | 10 <th>Added by:</th><td><a href="{% url 'bio-view_profile' link.user.username %}">{{ link.user.username }}</a></td> |
bgneal@310 | 11 <th>Category:</th><td><a href="{% url 'weblinks-view_links' slug=link.category.slug sort='date' %}">{{ link.category.title }}</a></td> |
bgneal@209 | 12 </tr> |
bgneal@209 | 13 <tr> |
bgneal@165 | 14 <th>Date Added:</th><td>{{ link.date_added|date:"M d, Y" }}</td> |
gremmie@1 | 15 <th>Hits:</th><td>{{ link.hits }}</td> |
bgneal@3 | 16 <td> |
bgneal@312 | 17 <a href="#" class="weblinks-broken" id="link-{{ link.id }}"><img src="{{ STATIC_URL }}icons/link_break.png" alt="Broken Link" title="Report this link as broken" /></a> |
bgneal@3 | 18 </td> |
gremmie@1 | 19 </tr> |
bgneal@165 | 20 <tr><td><input type="submit" value="Visit Site" /></td></tr> |
gremmie@1 | 21 </table> |
bgneal@165 | 22 </form> |
gremmie@1 | 23 <br /> |
gremmie@1 | 24 </dd> |