Mercurial > public > sg101
comparison gpp/templates/downloads/download.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 | 2022c0409296 |
children | 88b2b9cb8c1f |
comparison
equal
deleted
inserted
replaced
309:8a0bae48b6ca | 310:daa2916f5b34 |
---|---|
1 {% load url from future %} | |
1 {% load comment_tags %} | 2 {% load comment_tags %} |
2 {% get_comment_count for download as comment_count %} | 3 {% get_comment_count for download as comment_count %} |
3 <dt> | 4 <dt> |
4 {{ download.title }} | 5 {{ download.title }} |
5 </dt> | 6 </dt> |
6 <dd> | 7 <dd> |
7 {{ download.html|safe }} | 8 {{ download.html|safe }} |
8 <form action="{% url downloads-download download.id %}" method="post">{% csrf_token %} | 9 <form action="{% url 'downloads-download' download.id %}" method="post">{% csrf_token %} |
9 <table> | 10 <table> |
10 <tr> | 11 <tr> |
11 <th>Added By:</th> | 12 <th>Added By:</th> |
12 <td><a href="{% url bio-view_profile download.user.username %}">{{ download.user.username }}</a></td> | 13 <td><a href="{% url 'bio-view_profile' download.user.username %}">{{ download.user.username }}</a></td> |
13 <th>Date:</th><td>{{ download.date_added|date:"M d, Y" }}</td> | 14 <th>Date:</th><td>{{ download.date_added|date:"M d, Y" }}</td> |
14 <th>Size:</th><td>{{ download.size }}</td> | 15 <th>Size:</th><td>{{ download.size }}</td> |
15 </tr> | 16 </tr> |
16 <tr> | 17 <tr> |
17 <th>Category:</th><td>{{ download.category.title }}</td> | 18 <th>Category:</th><td>{{ download.category.title }}</td> |
18 <th>Downloads:</th><td>{{ download.hits }}</td> | 19 <th>Downloads:</th><td>{{ download.hits }}</td> |
19 </tr> | 20 </tr> |
20 <tr> | 21 <tr> |
21 <th>Rating:</th><td><div class="rating" id="rating-{{ download.id }}">{{ download.average_score|floatformat }}</div></td> | 22 <th>Rating:</th><td><div class="rating" id="rating-{{ download.id }}">{{ download.average_score|floatformat }}</div></td> |
22 <th><img src="{{ MEDIA_URL }}icons/comments.png" alt="Comments" title="Comments" /> | 23 <th><img src="{{ MEDIA_URL }}icons/comments.png" alt="Comments" title="Comments" /> |
23 <a href="{% url downloads-details download.id %}">Comments</a>:</th><td>{{ comment_count }}</td> | 24 <a href="{% url 'downloads-details' download.id %}">Comments</a>:</th><td>{{ comment_count }}</td> |
24 </tr> | 25 </tr> |
25 <tr><td><input type="submit" value="Download Now" /></td></tr> | 26 <tr><td><input type="submit" value="Download Now" /></td></tr> |
26 </table> | 27 </table> |
27 </form> | 28 </form> |
28 </dd> | 29 </dd> |