<%= csrf_meta_tag %> <%= favicon %> <%= stylesheet_link_tag 'reset', :media => 'all' %> <%= stylesheet_link_tag 'smoothness/jquery-ui', :media => 'all' %> <%= stylesheet_link_tag 'application', :media => 'all' %> <%= stylesheet_link_tag 'print', :media => 'print' %> <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> <%= javascript_include_tag 'jquery.min.js' %> <%= javascript_include_tag 'jquery-ui.min.js' %> <%= javascript_include_tag 'jquery.menu_expand.js' %> <%= javascript_tag('jQuery.noConflict();') %> <%= javascript_heads %> <%= stylesheet_link_tag 'jstoolbar' %> <%= heads_for_theme %> <% heads_for_wiki_formatter %> <%= call_hook :view_layouts_base_html_head %> <%= yield :header_tags -%>
<% account_items = menu_items_for(:account_menu) %>
    <%= content_tag('li', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}", :id => '') if User.current.logged? %> <% account_items.each do |item| %> <%= render_menu_node(item) %> <% end %>
<% items_for_main_level = [] items_for_more_level = [] menu_items_for(:top_menu) do |item| if item.name == :home || item.name == :my_page items_for_main_level << item elsif item.name == :projects # Remove else items_for_more_level << item end end %> <% if User.current.logged? || !Setting.login_required? %>
    <% items_for_main_level.each do |item| %> <%= render_menu_node(item) %> <% end %>
  • <% form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get, :id => 'nav-search' ) do %> <%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %> <%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %> <% end %>
<% end %>
<% main_menu = render_main_menu(@project) %> <% if has_content?(:sidebar) || !main_menu.blank? %> <% display_sidebar = true %> <% else %> <% display_sidebar = false %> <% end %>
">

<%= page_header_title %>

<% if display_sidebar %> <%= expand_current_menu %> <% end %>
" id="content"> <%= render_flash_messages %> <%= yield %> <%= call_hook :view_layouts_base_content %>
 
<%= call_hook :view_layouts_base_body_bottom %>