comparison gpp/templates/weblinks/link.html @ 310:daa2916f5b34

Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author Brian Neal <bgneal@gmail.com>
date Thu, 20 Jan 2011 04:03:48 +0000
parents 7e8d2dda99e3
children 88b2b9cb8c1f
comparison
equal deleted inserted replaced
309:8a0bae48b6ca 310:daa2916f5b34
1 {% load url from future %}
1 <dt> 2 <dt>
2 <h4><a href="{{ link.url }}">{{ link.title }}</a></h4> 3 <h4><a href="{{ link.url }}">{{ link.title }}</a></h4>
3 </dt> 4 </dt>
4 <dd> 5 <dd>
5 <p>{{ link.description }}</p> 6 <p>{{ link.description }}</p>
6 <form action="{% url weblinks-visit link.id %}" method="post">{% csrf_token %} 7 <form action="{% url 'weblinks-visit' link.id %}" method="post">{% csrf_token %}
7 <table class="link-stats"> 8 <table class="link-stats">
8 <tr> 9 <tr>
9 <th>Added by:</th><td><a href="{% url bio-view_profile link.user.username %}">{{ link.user.username }}</a></td> 10 <th>Added by:</th><td><a href="{% url 'bio-view_profile' link.user.username %}">{{ link.user.username }}</a></td>
10 <th>Category:</th><td><a href="{% url weblinks-view_links slug=link.category.slug sort='date' %}">{{ link.category.title }}</a></td> 11 <th>Category:</th><td><a href="{% url 'weblinks-view_links' slug=link.category.slug sort='date' %}">{{ link.category.title }}</a></td>
11 </tr> 12 </tr>
12 <tr> 13 <tr>
13 <th>Date Added:</th><td>{{ link.date_added|date:"M d, Y" }}</td> 14 <th>Date Added:</th><td>{{ link.date_added|date:"M d, Y" }}</td>
14 <th>Hits:</th><td>{{ link.hits }}</td> 15 <th>Hits:</th><td>{{ link.hits }}</td>
15 <td> 16 <td>