Toolbar und kopfzeileneinbindung

This commit is contained in:
Thomas Blazek
2013-08-02 15:00:58 +02:00
parent 58663f25f1
commit 005c28a273
10 changed files with 30 additions and 20 deletions

View File

@@ -7,6 +7,8 @@ class ModulsController < ApplicationController
if !params[:studium_id].nil?
@studium=Studium.find_by_id(params[:studium_id])
end
@toolbar_elements = [{:hicon=>'icon-plus-sign', :text=>I18n.t("modul.add"), :path=>new_modul_path}]
respond_to do |format|
format.html # index.html.erb
format.json { render json: @moduls }