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>
|
|
|
|
<title><%= Setting.app_title + (@html_title ? ": #{@html_title}" : "") %></title>
|
|
|
|
<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" />
|
|
|
|
<!--[if IE]>
|
|
|
|
<style type="text/css">
|
|
|
|
body {behavior: url(<%= stylesheet_path "csshover.htc" %>);}
|
|
|
|
</style>
|
|
|
|
<![endif]-->
|
|
|
|
<%= stylesheet_link_tag "application" %>
|
|
|
|
<%= stylesheet_link_tag "print", :media => "print" %>
|
|
|
|
<%= javascript_include_tag :defaults %>
|
|
|
|
<%= javascript_include_tag 'menu' %>
|
|
|
|
<%= stylesheet_link_tag 'jstoolbar' %>
|
|
|
|
<!-- page specific tags --><%= yield :header_tags %>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div id="container" >
|
|
|
|
|
|
|
|
<div id="header">
|
|
|
|
<div style="float: left;">
|
|
|
|
<h1><%= Setting.app_title %></h1>
|
|
|
|
<h2><%= Setting.app_subtitle %></h2>
|
|
|
|
</div>
|
|
|
|
<div style="float: right; padding-right: 1em; padding-top: 0.2em;">
|
2007-08-29 20:52:35 +04:00
|
|
|
<% if User.current.logged? %><small><%=l(:label_logged_as)%> <strong><%= User.current.login %></strong> -</small><% end %>
|
2007-04-30 18:17:20 +04:00
|
|
|
<small><%= toggle_link l(:label_search), 'quick-search-form', :focus => 'quick-search-input' %></small>
|
2007-04-30 12:52:39 +04:00
|
|
|
<% form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get, :id => 'quick-search-form', :style => "display:none;" ) do %>
|
|
|
|
<%= text_field_tag 'q', @question, :size => 15, :class => 'small', :id => 'quick-search-input' %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="navigation">
|
|
|
|
<ul>
|
|
|
|
<li><%= link_to l(:label_home), { :controller => 'welcome' }, :class => "icon icon-home" %></li>
|
|
|
|
<li><%= link_to l(:label_my_page), { :controller => 'my', :action => 'page'}, :class => "icon icon-mypage" %></li>
|
2007-05-15 21:39:01 +04:00
|
|
|
|
2007-08-29 20:52:35 +04:00
|
|
|
<% if User.current.memberships.any? %>
|
2007-05-15 21:39:01 +04:00
|
|
|
<li class="submenu"><%= link_to l(:label_project_plural), { :controller => 'projects' }, :class => "icon icon-projects", :onmouseover => "buttonMouseover(event, 'menuAllProjects');" %></li>
|
|
|
|
<% else %>
|
|
|
|
<li><%= link_to l(:label_project_plural), { :controller => 'projects' }, :class => "icon icon-projects" %></li>
|
|
|
|
<% end %>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2007-08-29 20:52:35 +04:00
|
|
|
<% if User.current.logged? %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<li><%= link_to l(:label_my_account), { :controller => 'my', :action => 'account' }, :class => "icon icon-user" %></li>
|
|
|
|
<% end %>
|
|
|
|
|
2007-08-29 20:52:35 +04:00
|
|
|
<% if User.current.admin? %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<li class="submenu"><%= link_to l(:label_administration), { :controller => 'admin' }, :class => "icon icon-admin", :onmouseover => "buttonMouseover(event, 'menuAdmin');" %></li>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<li class="right"><%= link_to l(:label_help), { :controller => 'help', :ctrl => params[:controller], :page => params[:action] }, :onclick => "window.open(this.href); return false;", :class => "icon icon-help" %></li>
|
|
|
|
|
2007-08-29 20:52:35 +04:00
|
|
|
<% if User.current.logged? %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<li class="right"><%= link_to l(:label_logout), { :controller => 'account', :action => 'logout' }, :class => "icon icon-user" %></li>
|
|
|
|
<% else %>
|
|
|
|
<li class="right"><%= link_to l(:label_login), { :controller => 'account', :action => 'login' }, :class => "icon icon-user" %></li>
|
2007-04-30 13:08:13 +04:00
|
|
|
<% end %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2007-08-29 20:52:35 +04:00
|
|
|
<% if User.current.admin? %>
|
2007-03-18 13:17:21 +03:00
|
|
|
<%= render :partial => 'admin/menu' %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
|
|
|
|
2007-08-29 20:52:35 +04:00
|
|
|
<% if User.current.memberships.any? %>
|
2007-05-26 19:53:15 +04:00
|
|
|
<div id="menuAllProjects" class="menu" onmouseover="menuMouseover(event)">
|
|
|
|
<%= link_to l(:label_project_all), {:controller => 'projects' }, :class => "menuItem" %>
|
2007-08-29 20:52:35 +04:00
|
|
|
<% User.current.memberships.find(:all, :limit => 20).each do |membership| %>
|
2007-05-26 19:53:15 +04:00
|
|
|
<%= link_to membership.project.name, {:controller => 'projects',:action => 'show', :id => membership.project }, :class => "menuItem" %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2007-08-29 20:52:35 +04:00
|
|
|
<div id="subcontent">
|
|
|
|
<% if @project && !@project.new_record? %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<h2><%= @project.name %></h2>
|
|
|
|
<ul class="menublock">
|
2007-08-29 20:52:35 +04:00
|
|
|
<% Redmine::MenuManager.allowed_items(:project_menu, current_role).each do |item| %>
|
|
|
|
<% unless item.condition && !item.condition.call(@project) %>
|
|
|
|
<li><%= link_to l(item.name), {item.param => @project}.merge(item.url) %></li>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2007-04-27 23:32:57 +04:00
|
|
|
|
2007-03-12 20:59:02 +03:00
|
|
|
<div id="content">
|
2007-08-12 15:25:25 +04:00
|
|
|
<div id="flash">
|
|
|
|
<%= content_tag('div', flash[:error], :class => 'error') if flash[:error] %>
|
|
|
|
<%= content_tag('div', flash[:notice], :class => 'notice') if flash[:notice] %>
|
|
|
|
</div>
|
2007-08-02 21:42:20 +04:00
|
|
|
<%= yield %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
|
|
|
|
2007-04-27 23:32:57 +04:00
|
|
|
<div id="ajax-indicator" style="display:none;">
|
|
|
|
<span><%= l(:label_loading) %></span>
|
|
|
|
</div>
|
|
|
|
|
2007-03-12 20:59:02 +03:00
|
|
|
<div id="footer">
|
2007-08-30 02:27:43 +04:00
|
|
|
<p><%= link_to Redmine::Info.app_name, Redmine::Info.url %> <small><%= Redmine::VERSION %> © 2006-2007 Jean-Philippe Lang</small></p>
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</body>
|
2007-08-02 21:42:20 +04:00
|
|
|
</html>
|