Mercurial > public > sg101
comparison gpp/templates/downloads/download.html @ 1:dbd703f7d63a
Initial import of sg101 stuff from private repository.
author | gremmie |
---|---|
date | Mon, 06 Apr 2009 02:43:12 +0000 |
parents | |
children | 32b1ca8e2940 |
comparison
equal
deleted
inserted
replaced
0:900ba3c7b765 | 1:dbd703f7d63a |
---|---|
1 {% load comment_tags %} | |
2 {% get_comment_count for download as comment_count %} | |
3 <dt> | |
4 <a href="{% url downloads-download download.id %}">{{ download.title }}</a> | |
5 </dt> | |
6 <dd> | |
7 {{ download.html|safe }} | |
8 <table> | |
9 <tr> | |
10 <th>Added By:</th> | |
11 <td><a href="{% url bio-view_profile download.user.username %}">{{ download.user.username }}</a></td> | |
12 <th>Date:</th><td>{{ download.date_added|date:"M d, Y" }}</td> | |
13 <th>Size:</th><td>{{ download.size }}</td> | |
14 </tr> | |
15 <tr> | |
16 <th>Category:</th><td>{{ download.category.title }}</td> | |
17 <th>Hits:</th><td>{{ download.hits }}</td> | |
18 </tr> | |
19 <tr> | |
20 <th>Rating:</th><td><div class="rating" id="rating-{{ download.id }}">{{ download.average_score|floatformat }}</div></td> | |
21 <th><a href="{% url downloads-comments download.id %}">Comments</a>:</th><td>{{ comment_count }}</td> | |
22 </tr> | |
23 </table> | |
24 </dd> |