2007-12-21 21:01:02 +03:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2007-03-12 20:59:02 +03:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
2009-12-13 17:55:17 +03:00
|
|
|
<title><%=h html_title %></title>
|
2007-08-30 02:27:43 +04:00
|
|
|
<meta name="description" content="<%= Redmine::Info.app_name %>" />
|
2007-03-12 20:59:02 +03:00
|
|
|
<meta name="keywords" content="issue,bug,tracker" />
|
2011-03-15 00:31:02 +03:00
|
|
|
<%= csrf_meta_tag %>
|
2010-07-29 18:58:33 +04:00
|
|
|
<%= favicon %>
|
2007-10-01 16:36:38 +04:00
|
|
|
<%= stylesheet_link_tag 'application', :media => 'all' %>
|
2010-08-19 20:57:44 +04:00
|
|
|
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
|
2011-02-21 12:53:29 +03:00
|
|
|
<%= javascript_heads %>
|
2010-12-23 00:37:07 +03:00
|
|
|
<%= heads_for_theme %>
|
2011-01-16 19:36:58 +03:00
|
|
|
<!--[if IE 6]>
|
2007-09-22 17:17:49 +04:00
|
|
|
<style type="text/css">
|
|
|
|
* html body{ width: expression( document.documentElement.clientWidth < 900 ? '900px' : '100%' ); }
|
|
|
|
body {behavior: url(<%= stylesheet_path "csshover.htc" %>);}
|
|
|
|
</style>
|
|
|
|
<![endif]-->
|
2008-09-05 14:31:06 +04:00
|
|
|
<%= call_hook :view_layouts_base_html_head %>
|
|
|
|
<!-- page specific tags -->
|
|
|
|
<%= yield :header_tags -%>
|
2007-03-12 20:59:02 +03:00
|
|
|
</head>
|
2011-02-28 19:44:02 +03:00
|
|
|
<body class="<%=h body_css_classes %>">
|
2008-01-06 20:28:20 +03:00
|
|
|
<div id="wrapper">
|
2010-02-14 16:07:51 +03:00
|
|
|
<div id="wrapper2">
|
2007-09-22 17:17:49 +04:00
|
|
|
<div id="top-menu">
|
|
|
|
<div id="account">
|
2008-02-12 20:58:46 +03:00
|
|
|
<%= render_menu :account_menu -%>
|
2007-04-30 12:52:39 +04:00
|
|
|
</div>
|
2008-12-07 16:12:19 +03:00
|
|
|
<%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}", :id => 'loggedas') if User.current.logged? %>
|
2011-03-04 18:14:24 +03:00
|
|
|
<%= render_menu :top_menu if User.current.logged? || !Setting.login_required? -%>
|
2007-09-22 17:17:49 +04:00
|
|
|
</div>
|
2011-05-30 22:52:25 +04:00
|
|
|
|
2007-09-22 17:17:49 +04:00
|
|
|
<div id="header">
|
2011-03-04 18:14:24 +03:00
|
|
|
<% if User.current.logged? || !Setting.login_required? %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<div id="quick-search">
|
|
|
|
<% form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %>
|
2009-10-21 21:07:18 +04:00
|
|
|
<%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %>
|
2011-10-20 19:42:32 +04:00
|
|
|
<label for='q'>
|
|
|
|
<%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>:
|
|
|
|
</label>
|
2007-10-05 22:05:41 +04:00
|
|
|
<%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<% end %>
|
2009-01-24 14:31:15 +03:00
|
|
|
<%= render_project_jump_box %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
2011-03-04 18:14:24 +03:00
|
|
|
<% end %>
|
2011-05-30 22:52:25 +04:00
|
|
|
|
2009-02-20 21:34:57 +03:00
|
|
|
<h1><%= page_header_title %></h1>
|
2011-05-30 22:52:25 +04:00
|
|
|
|
2010-03-04 09:01:05 +03:00
|
|
|
<% if display_main_menu?(@project) %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<div id="main-menu">
|
2008-01-19 14:53:43 +03:00
|
|
|
<%= render_main_menu(@project) %>
|
2007-09-22 17:17:49 +04:00
|
|
|
</div>
|
2010-03-04 09:01:05 +03:00
|
|
|
<% end %>
|
2007-09-22 17:17:49 +04:00
|
|
|
</div>
|
2007-04-27 23:32:57 +04:00
|
|
|
|
2007-09-22 17:17:49 +04:00
|
|
|
<%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %>
|
2011-05-30 22:52:25 +04:00
|
|
|
<div id="sidebar">
|
2007-09-22 17:17:49 +04:00
|
|
|
<%= yield :sidebar %>
|
2009-02-10 04:24:32 +03:00
|
|
|
<%= call_hook :view_layouts_base_sidebar %>
|
2007-09-22 17:17:49 +04:00
|
|
|
</div>
|
2011-05-30 22:52:25 +04:00
|
|
|
|
2007-09-22 17:17:49 +04:00
|
|
|
<div id="content">
|
2009-01-03 17:11:44 +03:00
|
|
|
<%= render_flash_messages %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<%= yield %>
|
2009-02-10 04:24:32 +03:00
|
|
|
<%= call_hook :view_layouts_base_content %>
|
2009-03-28 15:13:58 +03:00
|
|
|
<div style="clear:both;"></div>
|
2007-09-22 17:17:49 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2007-09-22 17:17:49 +04:00
|
|
|
<div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div>
|
2011-05-30 22:52:25 +04:00
|
|
|
|
2007-09-22 17:17:49 +04:00
|
|
|
<div id="footer">
|
2010-02-14 16:07:51 +03:00
|
|
|
<div class="bgl"><div class="bgr">
|
2011-02-22 02:43:02 +03:00
|
|
|
<%= l(:text_powered_by, :link => link_to(Redmine::Info.app_name, Redmine::Info.url)) %>
|
2010-02-14 16:07:51 +03:00
|
|
|
</div></div>
|
|
|
|
</div>
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
2008-01-06 20:28:20 +03:00
|
|
|
</div>
|
2008-09-30 09:18:50 +04:00
|
|
|
<%= call_hook :view_layouts_base_body_bottom %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</body>
|
2007-08-02 21:42:20 +04:00
|
|
|
</html>
|