OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/app/views/layouts/base.html.erb

116 lines
4.1 KiB

<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<%= I18n.locale.to_s %>" xml:lang="<%= I18n.locale.to_s %>">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><%= html_title %></title>
<meta name="description" content="<%= Redmine::Info.app_name %>" />
<meta name="keywords" content="issue,bug,type" />
<meta name="current_menu_item" content="<%= current_menu_item %>" />
<%= csrf_meta_tag %>
<%= favicon_link_tag 'favicon.ico' %>
<%= stylesheet_link_tag current_theme.stylesheet_manifest, :media => "all" %>
<%= javascript_include_tag 'application' %>
<!-- user specific tags -->
<%= user_specific_javascript_includes %>
<!-- project specific tags -->
<%= call_hook :view_layouts_base_html_head %>
<!-- page specific tags -->
<%= content_for(:header_tags) if content_for?(:header_tags) %>
</head>
<noscript><%=l(:description_noscript)%></noscript>
11 years ago
<% show_decoration = params["layout"].nil? %>
<body class="<%= body_css_classes %>">
<div id="wrapper">
11 years ago
<% if show_decoration %>
<div id="top-menu">
<div id="header">
<div id="logo"></div>
<div id="top-menu-items">
<div id="search">
<%= label_tag("q", l(:label_search), :class => "hidden-for-sighted") %>
<%= form_tag({:controller => '/search', :action => 'index', :project_id => @project}, :method => :get) do %>
<%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %>
<div id='search_wrap'>
<%= text_field_tag 'q', @question, :size => 20, :class => 'search_field', :placeholder => l(:search_input_placeholder), :accesskey => accesskey(:quick_search) %>
</div>
<% end %>
</div>
<h1 class="hidden-for-sighted">
<%= l(:label_top_menu) %>
</h1>
<%= render_top_menu %>
</div>
</div>
<div id="breadcrumb">
<h1>
<%= you_are_here_info %>
<%= full_breadcrumb %>
</h1>
</div>
<%= javascript_tag('jQuery(function($) { $("div#breadcrumb ul.breadcrumb").adjustBreadcrumbToWindowSize(); });') %>
</div>
<% end %>
14 years ago
<% main_menu = render_main_menu(@project) %>
<% side_displayed = content_for?(:sidebar) || content_for?(:main_menu) || !main_menu.blank? %>
11 years ago
<div id="main" class="<%= side_displayed ? '' : "nosidebar" %><%= (show_decoration) ? '' : 'nomenus' %>">
<% if (side_displayed && show_decoration) %>
<div id="main-menu">
<h1 class="hidden-for-sighted"><%= l(:label_main_menu) %></h1>
<div id="toggle-project-menu">
<a href="javascript:;" title="<%= l(:show_hide_project_menu) %>" class="navigation-toggler"></a>
</div>
<div id="menu-sidebar">
<%= main_menu %>
<%= content_for :main_menu %>
<!-- Sidebar -->
<div id="sidebar">
<%= content_for :sidebar %>
<%= call_hook :view_layouts_base_sidebar %>
</div>
</div>
14 years ago
</div>
<%= expand_current_menu %>
<% end %>
<div class="<%= (side_displayed) ? '' : "nosidebar" %>" id="content">
<h1 class="hidden-for-sighted"><%= l(:label_content) %></h1>
14 years ago
<%= render_flash_messages %>
<!-- Action menu -->
<%= render :partial => 'layouts/action_menu' %>
14 years ago
<%= yield %>
<%= call_hook :view_layouts_base_content %>
<div style="clear:both;">&nbsp;</div>
</div>
14 years ago
</div>
14 years ago
11 years ago
<% if (show_decoration) %>
<div id="footer">
<%= footer_content %>
</div>
<% end %>
14 years ago
<div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div>
</div>
<%= call_hook :view_layouts_base_body_bottom %>
</body>
</html>