Mercurial > public > sg101
comparison gpp/templates/forums/display_post.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 | 59aaba88405e |
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 {% load forum_tags %} | 3 {% load forum_tags %} |
4 <tr class="forum-post {{ rowcolors }}" id="post-{{ post.id }}"> | 4 <tr class="forum-post {{ rowcolors }}" id="post-{{ post.id }}"> |
5 <td class="forum-post-author"> | 5 <td class="forum-post-author"> |
6 <a name="p{{ post.id }}"></a> | 6 <a name="p{{ post.id }}"></a> |
7 <a href="{% url 'bio-view_profile' username=post.user.username %}" title="View Profile for {{ post.user.username }}"><span class="post-author">{{ post.user.username }}</span></a><br /> | 7 <span class="post-author">{% profile_link post.user.username %}</span><br /> |
8 <a href="{% url 'bio-view_profile' username=post.user.username %}">{% avatar post.user %}</a><br /> | 8 {% avatar post.user %}<br /> |
9 Joined: {{ post.user.date_joined|date:"M d, Y" }}<br /> | 9 Joined: {{ post.user.date_joined|date:"M d, Y" }}<br /> |
10 Posts: {{ post.user.user_profile.forum_post_count }}<br /> | 10 Posts: {{ post.user.user_profile.forum_post_count }}<br /> |
11 {% if post.user.user_profile.location %} | 11 {% if post.user.user_profile.location %} |
12 {{ post.user.user_profile.location }}<br /> | 12 {{ post.user.user_profile.location }}<br /> |
13 {% endif %} | 13 {% endif %} |