Mercurial > public > sg101
comparison gpp/templates/forums/forum_index.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 | 768e3568addf |
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 forum_tags %} | 3 {% load forum_tags %} |
4 {% load bio_tags %} | |
4 {% block custom_head %} | 5 {% block custom_head %} |
5 {% if feed %} | 6 {% if feed %} |
6 <link rel="alternate" type="application/rss+xml" title="{{ feed.name }}" href="{{ feed.feed }}" /> | 7 <link rel="alternate" type="application/rss+xml" title="{{ feed.name }}" href="{{ feed.feed }}" /> |
7 {% endif %} | 8 {% endif %} |
8 {% include "forums/jump_box.js" %} | 9 {% include "forums/jump_box.js" %} |
38 {% if topic.page_range %} | 39 {% if topic.page_range %} |
39 {% topic_page_range topic %} | 40 {% topic_page_range topic %} |
40 {% endif %} | 41 {% endif %} |
41 </td> | 42 </td> |
42 <td class="forum-index_replies">{{ topic.reply_count }}</td> | 43 <td class="forum-index_replies">{{ topic.reply_count }}</td> |
43 <td class="forum-index_author"><a href="{% url 'bio-view_profile' username=topic.user.username %}" title="View profile for {{ topic.user.username }}">{{ topic.user.username }}</a></td> | 44 <td class="forum-index_author">{% profile_link topic.user.username %}</td> |
44 <td class="forum-index_views">{{ topic.view_count }}</td> | 45 <td class="forum-index_views">{{ topic.view_count }}</td> |
45 <td class="forum-index_last_post"> | 46 <td class="forum-index_last_post"> |
46 {% last_post_info topic.last_post %} | 47 {% last_post_info topic.last_post %} |
47 </td> | 48 </td> |
48 </tr> | 49 </tr> |