<%= 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' } %> <%= link_to l(:label_logout), { :controller => 'account', :action => 'logout' } %> <% else %> <%= link_to l(:label_login), { :controller => 'account', :action => 'login' } %> <%= link_to(l(:label_register), :controller => 'account',:action => 'register') if Setting.self_registration? %> <% end %>
<%= link_to l(:label_home), home_url %> <%= link_to l(:label_my_page), { :controller => 'my', :action => 'page'} if User.current.logged? %> <%= link_to l(:label_project_plural), { :controller => 'projects' } %> <%= link_to l(:label_administration), { :controller => 'admin' } if User.current.admin? %> <%= link_to l(:label_help), Redmine::Info.help_url %>
<%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %>
<%= content_tag('div', flash[:error], :class => 'error') if flash[:error] %> <%= content_tag('div', flash[:notice], :class => 'notice') if flash[:notice] %>
<%= yield %>