rechte für actions versions neuigkeiten

This commit is contained in:
Andreas Stephanides
2014-10-19 19:49:33 +02:00
parent ad751c0837
commit 7436c5c01e
6 changed files with 14 additions and 7 deletions

View File

@@ -38,7 +38,7 @@ class ThemenController < ApplicationController
# #
#
# @thema.text = @thema.text.sanitize
render :show
render :edit
end
def verwalten
@thema = Thema.find(params[:id])
@@ -46,6 +46,8 @@ class ThemenController < ApplicationController
@fragen=@thema.fragen
@toolbar_elements = [{:icon=>:pencil, :hicon=>'icon-pencil', :text=>I18n.t('thema.edit'), :path=>edit_thema_path(@thema)}]
@toolbar_elements <<{ :hicon=>'icon-leaf', :text=>"Sanitize", :path=>sanitize_thema_path(@thema)}
@toolbar_elements << {:hicon=>'icon-remove-circle', :text=>I18n.t('thema.remove'), :path=>thema_path(@thema), :method=>:delete, :confirm=>I18n.t('thema.sure')}
end