2007-03-12 20:59:02 +03:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
|
|
|
<head>
|
2007-09-08 00:52:45 +04:00
|
|
|
<title><%=h html_title %></title>
|
2007-03-12 20:59:02 +03:00
|
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
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" />
|
2007-10-01 16:36:38 +04:00
|
|
|
<%= stylesheet_link_tag 'application', :media => 'all' %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<%= javascript_include_tag :defaults %>
|
|
|
|
<%= stylesheet_link_tag 'jstoolbar' %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<!--[if IE]>
|
|
|
|
<style type="text/css">
|
|
|
|
* html body{ width: expression( document.documentElement.clientWidth < 900 ? '900px' : '100%' ); }
|
|
|
|
body {behavior: url(<%= stylesheet_path "csshover.htc" %>);}
|
|
|
|
</style>
|
|
|
|
<![endif]-->
|
|
|
|
|
2007-03-12 20:59:02 +03:00
|
|
|
<!-- page specific tags --><%= yield :header_tags %>
|
|
|
|
</head>
|
|
|
|
<body>
|
2007-09-22 17:17:49 +04:00
|
|
|
<div id="top-menu">
|
|
|
|
<div id="account">
|
|
|
|
<% 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 %>
|
2007-04-30 12:52:39 +04:00
|
|
|
</div>
|
2007-09-24 22:38:45 +04:00
|
|
|
<%= link_to l(:label_home), home_url %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<%= 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? %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="header">
|
|
|
|
<div id="quick-search">
|
|
|
|
<% form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %>
|
|
|
|
<%= link_to l(:label_search), :controller => 'search', :action => 'index', :id => @project %>: <%= text_field_tag 'q', @question, :size => 20, :class => 'small' %>
|
|
|
|
<% end %>
|
|
|
|
<%= render :partial => 'layouts/project_selector' if User.current.memberships.any? %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
2007-09-22 17:17:49 +04:00
|
|
|
|
|
|
|
<h1><%= h(@project ? @project.name : Setting.app_title) %></h1>
|
|
|
|
|
|
|
|
<div id="main-menu">
|
|
|
|
<ul>
|
2007-09-14 15:34:08 +04:00
|
|
|
<% Redmine::MenuManager.allowed_items(:project_menu, User.current, @project).each do |item| %>
|
2007-08-29 20:52:35 +04:00
|
|
|
<% unless item.condition && !item.condition.call(@project) %>
|
|
|
|
<li><%= link_to l(item.name), {item.param => @project}.merge(item.url) %></li>
|
|
|
|
<% end %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<% end if @project && !@project.new_record? %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</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) %>
|
|
|
|
<div id="sidebar">
|
|
|
|
<%= yield :sidebar %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="content">
|
|
|
|
<div id="flash">
|
|
|
|
<%= content_tag('div', flash[:error], :class => 'error') if flash[:error] %>
|
|
|
|
<%= content_tag('div', flash[:notice], :class => 'notice') if flash[:notice] %>
|
|
|
|
</div>
|
|
|
|
<%= yield %>
|
|
|
|
</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>
|
|
|
|
|
|
|
|
<div id="footer">
|
2007-09-25 20:44:09 +04:00
|
|
|
Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url %> <%= Redmine::VERSION %> © 2006-2007 Jean-Philippe Lang
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
|
|
|
</body>
|
2007-08-02 21:42:20 +04:00
|
|
|
</html>
|