<%= stylesheet_link_tag 'application', :media => 'all' %> <%= javascript_include_tag :defaults %> <%= stylesheet_link_tag 'jstoolbar' %> <%= yield :header_tags %>
<% 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 l(:label_logout), { :controller => 'account', :action => 'logout' }, :class => 'logout' %> <% else %> <%= link_to l(:label_login), { :controller => 'account', :action => 'login' }, :class => 'signin' %> <%= link_to(l(:label_register), { :controller => 'account',:action => 'register' }, :class => 'register') if Setting.self_registration? %> <% end %>
<%= 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' %>
<%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %>
<%= content_tag('div', flash[:error], :class => 'flash error') if flash[:error] %> <%= content_tag('div', flash[:notice], :class => 'flash notice') if flash[:notice] %> <%= yield %>