From bd013b8f69df9f861be29007222e7eb55fb18857 Mon Sep 17 00:00:00 2001 From: MoisesMachado Date: Tue, 16 Oct 2007 22:03:05 +0000 Subject: [PATCH] ActionItem111: changed some links in the inteface --- app/helpers/application_helper.rb | 19 +++++++++++++++++++ app/views/shared/categories_menu.rhtml | 6 +++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index c716990..6fb8657 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -146,6 +146,25 @@ module ApplicationHelper content_tag('span', (link_to _('Logout'), { :controller => 'account', :action => 'logout'}, :method => 'post'), :id => 'logout_box') end + def account_links + + + end + + def admin_links + end + + def user_options + case params[:controller] + when 'account' + account_links + when 'admin' + admin_links + else + nil + end + end + def footer # FIXME: add some information from the environment [ diff --git a/app/views/shared/categories_menu.rhtml b/app/views/shared/categories_menu.rhtml index 4b202d9..42b3adf 100644 --- a/app/views/shared/categories_menu.rhtml +++ b/app/views/shared/categories_menu.rhtml @@ -1,8 +1,8 @@