comparison gpp/templates/shoutbox/shout_detail.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 3cf18e6002dd
children
comparison
equal deleted inserted replaced
491:7dbdbb08e68c 492:3c48a555298d
1 {% load url from future %} 1 {% load url from future %}
2 {% load avatar_tags %} 2 {% load bio_tags %}
3 <tr> 3 <tr>
4 <th> 4 <th>
5 <a href="{% url 'bio-view_profile' username=shout.user.username %}">{% avatar shout.user %}</a><br /> 5 {% avatar shout.user %}<br />
6 <a href="{% url 'bio-view_profile' username=shout.user.username %}">{{ shout.user.username }}</a> 6 {% profile_link shout.user.username %}
7 </th> 7 </th>
8 <td> 8 <td>
9 <div {% ifequal user.id shout.user.id %}class="edit" id="shout-{{ shout.id }}"{% endifequal %}>{{ shout.html|safe }}</div> 9 <div {% ifequal user.id shout.user.id %}class="edit" id="shout-{{ shout.id }}"{% endifequal %}>{{ shout.html|safe }}</div>
10 </div> 10 </div>
11 <br /> 11 <br />