Mercurial > public > sg101
comparison gpp/templates/forums/topic_list.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 | 957955279a15 |
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 forum_tags %} | 4 {% load forum_tags %} |
4 {% block title %}Forums: {{ title }}{% endblock %} | 5 {% block title %}Forums: {{ title }}{% endblock %} |
5 {% block custom_js %} | 6 {% block custom_js %} |
6 {% include "forums/forum_query.js" %} | 7 {% include "forums/forum_query.js" %} |
7 {% endblock %} | 8 {% endblock %} |
31 {% if topic.page_range %} | 32 {% if topic.page_range %} |
32 {% topic_page_range topic %} | 33 {% topic_page_range topic %} |
33 {% endif %} | 34 {% endif %} |
34 </td> | 35 </td> |
35 <td class="col-2"> | 36 <td class="col-2"> |
36 <a href="{% url 'bio-view_profile' username=topic.user.username %}" title="View profile for {{ topic.user.username }}">{{ topic.user.username }}</a> | 37 {% profile_link topic.user.username %} |
37 </td> | 38 </td> |
38 <td class="col-3"> | 39 <td class="col-3"> |
39 {{ topic.reply_count }} | 40 {{ topic.reply_count }} |
40 </td> | 41 </td> |
41 <td class="col-4"> | 42 <td class="col-4"> |