kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
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.
147 lines
5.2 KiB
147 lines
5.2 KiB
<%#-- copyright
|
|
OpenProject is a project management system.
|
|
Copyright (C) 2012-2014 the OpenProject Foundation (OPF)
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License version 3.
|
|
|
|
OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
|
|
Copyright (C) 2006-2013 Jean-Philippe Lang
|
|
Copyright (C) 2010-2013 the ChiliProject Team
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License
|
|
as published by the Free Software Foundation; either version 2
|
|
of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
See doc/COPYRIGHT.rdoc for more details.
|
|
|
|
++#%><!DOCTYPE html>
|
|
<% show_decoration = params["layout"].nil? %>
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="<%= I18n.locale.to_s %>" xml:lang="<%= I18n.locale.to_s %>" class="<%= 'in_modal' unless show_decoration %>">
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
<title><%= html_title %></title>
|
|
<meta name="description" content="<%= OpenProject::Info.app_name %>" />
|
|
<meta name="keywords" content="issue,bug,type" />
|
|
<meta name="current_menu_item" content="<%= current_menu_item %>" />
|
|
<meta name="accessibility-mode" content="<%= current_user.impaired? %>" />
|
|
<%= csrf_meta_tags %>
|
|
<%= favicon_link_tag 'favicon.ico' %>
|
|
<%= stylesheet_link_tag current_theme.stylesheet_manifest, :media => "all" %>
|
|
<% if User.current.impaired? && accessibility_css_enabled? %>
|
|
<%= stylesheet_link_tag 'accessibility' %>
|
|
<% end %>
|
|
|
|
<%= javascript_include_tag 'application' %>
|
|
<%= javascript_include_tag 'angular-i18n/angular-locale_de-de' if I18n.locale == :de %>
|
|
<!-- 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>
|
|
<body class="<%= body_css_classes %>" ng-app="openproject">
|
|
<noscript>
|
|
<div class="top-shelf icon icon-warning">
|
|
<h1><%=l(:noscript_heading)%></h1>
|
|
<p>
|
|
<%=l(:noscript_description)%>
|
|
</p>
|
|
<h2>
|
|
<a href="http://www.enable-javascript.com/" target="_blank"><%=l(:noscript_learn_more) %></a>
|
|
</h2>
|
|
</div>
|
|
</noscript>
|
|
<% main_menu = render_main_menu(@project) %>
|
|
<% side_displayed = content_for?(:sidebar) || content_for?(:main_menu) || !main_menu.blank? %>
|
|
|
|
<div id="wrapper" class="<%= (side_displayed) ? '' : "nosidebar" %><%= (show_decoration) ? '' : 'nomenus' %>">
|
|
<% if show_decoration %>
|
|
<div id="top-menu">
|
|
<div id="header">
|
|
<div id="logo">
|
|
<%= link_to(I18n.t('label_home'), home_url, :class => 'home-link') %>
|
|
</div>
|
|
<div id="top-menu-items">
|
|
<%= render_top_menu_left %>
|
|
<div class="top-menu-items-right">
|
|
<%= render :partial => 'search/mini_form' %>
|
|
|
|
<h1 class="hidden-for-sighted">
|
|
<%= l(:label_top_menu) %>
|
|
</h1>
|
|
|
|
<%= render_top_menu_right %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<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 icon4 icon-double-arrow-left"></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>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if show_decoration %>
|
|
<div id="breadcrumb" class="<%= (side_displayed) ? '' : "nosidebar" %><%= (show_decoration) ? '' : 'nomenus' %>">
|
|
<h1>
|
|
<%= you_are_here_info %>
|
|
<%= full_breadcrumb %>
|
|
</h1>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="<%= (side_displayed) ? '' : "nosidebar" %><%= (show_decoration) ? '' : 'nomenus' %>" id="content">
|
|
|
|
<h1 class="hidden-for-sighted"><%= l(:label_content) %></h1>
|
|
<%= render_flash_messages %>
|
|
|
|
<!-- Action menu -->
|
|
<%= render :partial => 'layouts/action_menu' %>
|
|
|
|
<%= yield %>
|
|
<%= call_hook :view_layouts_base_content %>
|
|
<div style="clear:both;"> </div>
|
|
</div>
|
|
</div>
|
|
|
|
<% if (show_decoration) %>
|
|
<div id="footer">
|
|
<div class="footer-content">
|
|
<%= footer_content %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div>
|
|
|
|
</div>
|
|
<%= call_hook :view_layouts_base_body_bottom %>
|
|
</body>
|
|
</html>
|
|
|