tabs fuer fetprofile

This commit is contained in:
Andreas Stephanides
2013-11-02 13:07:00 +01:00
parent f46bae52dc
commit 0eeafa6ef2
2 changed files with 12 additions and 14 deletions

View File

@@ -20,6 +20,8 @@ class FetprofilesController < ApplicationController
# GET /fetprofiles/1.json
def show
@fetprofile = Fetprofile.find(params[:id])
@gremientabs = Gremium.tabs
if params["verwalten"]
@toolbar_elements << {:hicon=>'icon-plus', :text=> I18n.t('fetprofile.newmembership'),:path => new_fetprofile_membership_path(@fetprofile) , :confirm=>"Sure?" } if can? :new, Membership
@toolbar_elements << {:hicon=>'icon-pencil', :text=> I18n.t('common.edit'),:path => edit_fetprofile_path(@fetprofile),:confirm=>"Sure?" } if can? :edit, @fetprofile