changeset 2389:d6f71eda64d6

improving on fixes to #27, hide item actions with no user logged in
author sharky93 <rishabhr123@gmail.com>
date Sat, 17 Aug 2013 14:10:46 +0530
parents 7328625c7ef2
children 2d0c705b6b42
files MoinMoin/themes/basic/templates/show.html
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/templates/show.html	Sat Aug 17 05:58:10 2013 +0530
+++ b/MoinMoin/themes/basic/templates/show.html	Sat Aug 17 14:10:46 2013 +0530
@@ -25,14 +25,11 @@
     {% set user_actions_exist = false %}
 
     {% if user.valid %}
+    <div class="list-group-item">User Actions</div>
         {%- for endpoint, label, title, check_exists in cfg.item_views if not endpoint in cfg.endpoints_excluded %}
             {%- if not check_exists or check_exists and exists %}
 
                 {%- if endpoint in user_actions %}
-                    {% if user_actions_exist == false %}
-                        <div class="list-group-item">User Actions</div>
-                        {% set user_actions_exist = true %}
-                    {% endif %}
                     <a class="list-group-item" href="{{ url_for(endpoint, item_name=item_name) }}" title="{{ title }}" rel="nofollow">
                         <span class="icon-stack">
                             <i class={{icon[endpoint]}}></i>