]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/application_helper.rb
Remove table from diary edit and refactor using new form styles
[rails.git] / app / helpers / application_helper.rb
index 3771acf3726746cbc44f99a5cc91af5c43c2c14b..b91710b9c6f3dfa86df5cfc82532b00294adf1f7 100644 (file)
@@ -26,6 +26,7 @@ module ApplicationHelper
     css << ".hide_if_user_#{@user.id} { display: none !important }" if @user;
     css << ".show_if_user_#{@user.id} { display: inline !important }" if @user;
     css << ".hide_unless_administrator { display: none !important }" unless @user and @user.administrator?;
+    css << ".hide_unless_moderator { display: none !important }" unless @user and @user.moderator?;
 
     return content_tag(:style, css, :type => "text/css")
   end