changeset 2455:780b7c4c49e2

fixes rendering of User Actions heading even with no one logged in
author sharky93 <rishabhr123@gmail.com>
date Sun, 08 Sep 2013 22:35:13 +0530
parents d4d377f4e56f
children 059b439bea9e
files MoinMoin/themes/basic/templates/show.html
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/templates/show.html	Sun Sep 08 22:28:54 2013 +0530
+++ b/MoinMoin/themes/basic/templates/show.html	Sun Sep 08 22:35:13 2013 +0530
@@ -31,8 +31,10 @@
         
         <!-- user, site, item actions -->
     <div class="list-group">
-        <div class="list-group-item"> {{ _("User Actions") }} </div>
-        {{ self.user_actions() }}
+        {% if user_actions %}
+            <div class="list-group-item"> {{ _("User Actions") }} </div>
+            {{ self.user_actions() }}
+        {% endif %}
 
         <div class="list-group-item">View Options</div>
         <button type="button"