Mercurial > public > sg101
comparison gpp/templates/potd/view.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 | 7dbdbb08e68c |
children |
comparison
equal
deleted
inserted
replaced
491:7dbdbb08e68c | 492:3c48a555298d |
---|---|
1 {% extends 'base.html' %} | 1 {% extends 'base.html' %} |
2 {% load url from future %} | 2 {% load url from future %} |
3 {% load bio_tags %} | |
3 {% load core_tags %} | 4 {% load core_tags %} |
4 {% load comment_tags %} | 5 {% load comment_tags %} |
5 {% load script_tags %} | 6 {% load script_tags %} |
6 {% block title %}Photo Of The Day{% endblock %} | 7 {% block title %}Photo Of The Day{% endblock %} |
7 {% block custom_meta %} | 8 {% block custom_meta %} |
27 <div class="potd-details"> | 28 <div class="potd-details"> |
28 <img src="{{ potd.photo.url }}" alt="{{ potd.caption }}" title="{{ potd.caption }}" /> | 29 <img src="{{ potd.photo.url }}" alt="{{ potd.caption }}" title="{{ potd.caption }}" /> |
29 <p class="caption">{{ potd.caption }}</p> | 30 <p class="caption">{{ potd.caption }}</p> |
30 <p class="details"> | 31 <p class="details"> |
31 Submitted by | 32 Submitted by |
32 <a href="{% url 'bio-view_profile' username=potd.user.username %}">{{ potd.user.username }}</a> | 33 {% profile_link potd.user.username %} on {{ potd.date_added|date:"d F Y" }}.<br /> |
33 on {{ potd.date_added|date:"d F Y" }}.<br /> | |
34 This photo has been Photo of the Day {{ potd.potd_count }} time{{ potd.potd_count|pluralize }}. | 34 This photo has been Photo of the Day {{ potd.potd_count }} time{{ potd.potd_count|pluralize }}. |
35 </p> | 35 </p> |
36 <div class="description">{{ potd.description|safe }}</div> | 36 <div class="description">{{ potd.description|safe }}</div> |
37 <p class="details"> | 37 <p class="details"> |
38 If you would like us to feature your photo, send it along with your username, a title, and | 38 If you would like us to feature your photo, send it along with your username, a title, and |