CHANGE: pretty_toolbar für Fragen und Themen

This commit is contained in:
HausdorffHimself
2013-09-01 23:56:04 +02:00
parent 94925e34ba
commit 9c316f165c
8 changed files with 47 additions and 25 deletions

View File

@@ -14,6 +14,8 @@ class ThemenController < ApplicationController
# GET /themen/1.json
def show
@thema = Thema.find(params[:id])
@toolbar_elements = [{:icon=>:pencil, :hicon=>'icon-pencil', :text=>I18n.t('thema.edit'), :path=>edit_thema_path(@thema)}]
@toolbar_elements << {:hicon=>'icon-remove-circle', :text=>I18n.t('thema.remove'), :path=>themengruppe_thema_path(@thema), :method=>:delete, :confirm=>I18n.t('thema.sure')}
respond_to do |format|
format.html # show.html.erb