diff gpp/templates/forums/topic.html @ 104:59688577a8f1

Forums: display of sticky status. Moderators/superusers see IP address of post. Added a can_reply flag to the template and have view compute it.
author Brian Neal <bgneal@gmail.com>
date Thu, 17 Sep 2009 01:44:51 +0000
parents e67c4dd98db5
children e94398f5e027
line wrap: on
line diff
--- a/gpp/templates/forums/topic.html	Thu Sep 17 00:20:00 2009 +0000
+++ b/gpp/templates/forums/topic.html	Thu Sep 17 01:44:51 2009 +0000
@@ -11,9 +11,14 @@
 </h3>
 
 <div class="forum-block">
+{% if topic.sticky %}
+<img src="{{ MEDIA_URL }}/icons/asterisk_orange.png" alt="Sticky" title="Sticky" />
+{% endif %}
 {% if topic.locked %}
 <img src="{{ MEDIA_URL }}/icons/lock.png" alt="Lock" title="This topic is locked" />
-{% else %}
+{% endif %}
+{% if can_reply %}
+{% if topic.locked or topic.sticky %}&bull;{% endif %}
 {% if last_page %}
 <a href="#forum-reply-form">New Reply</a>
 {% else %}
@@ -30,7 +35,7 @@
 </table>
 {{ page_nav }}
 
-{% if last_page and user.is_authenticated and not topic.locked %}
+{% if last_page and can_reply %}
 <a name="forum-reply-form"></a>
 <form action="" method="post" id="forums-quick-reply">
 <fieldset>