Mercurial > public > sg101
comparison gpp/templates/forums/mod_forum.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 | 88b2b9cb8c1f |
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 %}Moderate Forum: {{ forum.name }}{% endblock %} | 5 {% block title %}Moderate Forum: {{ forum.name }}{% endblock %} |
5 {% block custom_js %} | 6 {% block custom_js %} |
6 <script type="text/javascript" src="{{ STATIC_URL }}js/forums_mod.js"></script> | 7 <script type="text/javascript" src="{{ STATIC_URL }}js/forums_mod.js"></script> |
7 {% endblock %} | 8 {% endblock %} |
27 <td>{% if topic.sticky %}<img src="{{ STATIC_URL }}icons/asterisk_orange.png" alt="Sticky" title="Sticky" class="forums-topic-icon" />{% endif %} | 28 <td>{% if topic.sticky %}<img src="{{ STATIC_URL }}icons/asterisk_orange.png" alt="Sticky" title="Sticky" class="forums-topic-icon" />{% endif %} |
28 {% if topic.locked %}<img src="{{ STATIC_URL }}icons/lock.png" alt="Locked" title="Locked" | 29 {% if topic.locked %}<img src="{{ STATIC_URL }}icons/lock.png" alt="Locked" title="Locked" |
29 class="forums-topic-icon" />{% endif %} | 30 class="forums-topic-icon" />{% endif %} |
30 <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td> | 31 <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td> |
31 <td class="forum-index_replies">{{ topic.reply_count }}</td> | 32 <td class="forum-index_replies">{{ topic.reply_count }}</td> |
32 <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> | 33 <td class="forum-index_author">{% profile_link topic.user.username %}</td> |
33 <td class="forum-index_last_post"> | 34 <td class="forum-index_last_post"> |
34 {% last_post_info topic.last_post %} | 35 {% last_post_info topic.last_post %} |
35 </td> | 36 </td> |
36 <td class="forum-index_select"><input type="checkbox" name="topic_ids" value="{{ topic.id }}" class="forums-topic_check" /></td> | 37 <td class="forum-index_select"><input type="checkbox" name="topic_ids" value="{{ topic.id }}" class="forums-topic_check" /></td> |
37 </tr> | 38 </tr> |