CHANGE: Themengruppe verwenden pretty_toolbar

This commit is contained in:
HausdorffHimself
2013-09-01 21:07:09 +02:00
parent 489dc933a2
commit 65b287d613
4 changed files with 28 additions and 16 deletions

View File

@@ -3,6 +3,7 @@ class ThemengruppenController < ApplicationController
# GET /themengruppen.json
def index
@themengruppen = Themengruppe.all
@toolbar_elements = [{:icon=>:plus, :hicon=>'icon-plus-sign', :text=>I18n.t('themengruppe.new'), :path=>new_themengruppe_path()}]
respond_to do |format|
format.html # index.html.erb
@@ -14,6 +15,8 @@ class ThemengruppenController < ApplicationController
# GET /themengruppen/1.json
def show
@themengruppe = Themengruppe.find(params[:id])
@toolbar_elements = [{:icon=>:pencil, :hicon=>'icon-pencil', :text=>I18n.t('themengruppe.edit'), :path=>edit_themengruppe_path(@themengruppe)}]
@toolbar_elements << {:hicon=>'icon-remove-circle',:text=>I18n.t('themengruppe.remove'), :path=>themengruppe_path(@themengruppe), :method=>:delete,:confirm=>I18n.t('themengruppe.sure')}
respond_to do |format|
format.html # show.html.erb