Mercurial > public > sg101
comparison gpp/templates/downloads/download.html @ 492:3c48a555298d
Added a custom tag to display a link to a profile. Refactored the avatar tag to optionally display a profile link around the image. Removed the width and height attributes from the avatar image tag. I think this was causing disk hits whenever those properties were not cached. The avatar tag is now an inclusion tag.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 22 Oct 2011 00:07:50 +0000 |
parents | f469261d617b |
children |
comparison
equal
deleted
inserted
replaced
491:7dbdbb08e68c | 492:3c48a555298d |
---|---|
1 {% load url from future %} | 1 {% load url from future %} |
2 {% load comment_tags %} | 2 {% load comment_tags %} |
3 {% load bio_tags %} | |
3 {% get_comment_count for download as comment_count %} | 4 {% get_comment_count for download as comment_count %} |
4 <dt> | 5 <dt> |
5 {{ download.title }} | 6 {{ download.title }} |
6 </dt> | 7 </dt> |
7 <dd> | 8 <dd> |
8 {{ download.html|safe }} | 9 {{ download.html|safe }} |
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>{% profile_link download.user.username %}</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> |