The following menus can now be extended by plugins: top_menu, account_menu, application_menu (empty by default).
Sligth layout change: links in the top menu are now li elements. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1137 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
93ef8b7f77
commit
c5d998528f
6 files changed
+66
-40
No files matched your search
@@ -31,14 +31,6 @@ module ApplicationHelper
|
||||
def link_to_if_authorized(name, options = {}, html_options = nil, *parameters_for_method_reference)
|
||||
link_to(name, options, html_options, *parameters_for_method_reference) if authorize_for(options[:controller] || params[:controller], options[:action])
|
||||
end
|
||||
|
||||
def link_to_signin
|
||||
link_to l(:label_login), { :controller => 'account', :action => 'login' }, :class => 'signin'
|
||||
end
|
||||
|
||||
def link_to_signout
|
||||
link_to l(:label_logout), { :controller => 'account', :action => 'logout' }, :class => 'logout'
|
||||
end
|
||||
|
||||
# Display a link to user's account page
|
||||
def link_to_user(user)
|
||||
|
||||
Reference in new issue
Block a user