summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-02-12 17:58:46 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-02-12 17:58:46 +0000
commitc5d998528fedb6652074c06132cabd9435a4d5be (patch)
tree3ade6617f59c302f6bcc0f62133cf84c5c9fe907 /app/views
parent93ef8b7f77ec84bef19d7a872a15b8d406cdb46e (diff)
downloadredmine-c5d998528fedb6652074c06132cabd9435a4d5be.tar.gz
redmine-c5d998528fedb6652074c06132cabd9435a4d5be.zip
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
Diffstat (limited to 'app/views')
-rw-r--r--app/views/layouts/base.rhtml16
1 files changed, 3 insertions, 13 deletions
diff --git a/app/views/layouts/base.rhtml b/app/views/layouts/base.rhtml
index 1f7472006..820a8e700 100644
--- a/app/views/layouts/base.rhtml
+++ b/app/views/layouts/base.rhtml
@@ -21,20 +21,10 @@
<div id="wrapper">
<div id="top-menu">
<div id="account">
- <% if User.current.logged? %>
- <%=l(:label_logged_as)%> <%= User.current.login %> -
- <%= link_to l(:label_my_account), { :controller => 'my', :action => 'account' }, :class => 'myaccount' %>
- <%= link_to_signout %>
- <% else %>
- <%= link_to_signin %>
- <%= link_to(l(:label_register), { :controller => 'account',:action => 'register' }, :class => 'register') if Setting.self_registration? %>
- <% end %>
+ <%= render_menu :account_menu -%>
</div>
- <%= link_to l(:label_home), home_url, :class => 'home' %>
- <%= link_to l(:label_my_page), { :controller => 'my', :action => 'page'}, :class => 'mypage' if User.current.logged? %>
- <%= link_to l(:label_project_plural), { :controller => 'projects' }, :class => 'projects' %>
- <%= link_to l(:label_administration), { :controller => 'admin' }, :class => 'admin' if User.current.admin? %>
- <%= link_to l(:label_help), Redmine::Info.help_url, :class => 'help' %>
+ <%= content_tag('div', "#{l(:label_logged_as)} #{User.current.login}", :id => 'loggedas') if User.current.logged? %>
+ <%= render_menu :top_menu -%>
</div>
<div id="header">