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" />
|
|
|
|
<meta name="description" content="redMine" />
|
|
|
|
<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;">
|
|
|
|
<% if loggedin? %><small><%=l(:label_logged_as)%> <b><%= @logged_in_user.login %></b></small><% end %>
|
|
|
|
</div>
|
|
|
|
</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>
|
|
|
|
<li><%= link_to l(:label_project_plural), { :controller => 'projects' }, :class => "icon icon-projects" %></li>
|
|
|
|
|
|
|
|
<% unless @project.nil? || @project.id.nil? %>
|
|
|
|
<li class="submenu"><%= link_to @project.name, { :controller => 'projects', :action => 'show', :id => @project }, :class => "icon icon-projects", :onmouseover => "buttonMouseover(event, 'menuProject');" %></li>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if loggedin? %>
|
|
|
|
<li><%= link_to l(:label_my_account), { :controller => 'my', :action => 'account' }, :class => "icon icon-user" %></li>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if admin_loggedin? %>
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<% if loggedin? %>
|
|
|
|
<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>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% if admin_loggedin? %>
|
2007-03-18 13:17:21 +03:00
|
|
|
<%= render :partial => 'admin/menu' %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% unless @project.nil? || @project.id.nil? %>
|
|
|
|
<div id="menuProject" class="menu" onmouseover="menuMouseover(event)">
|
|
|
|
<%= link_to l(:label_calendar), {:controller => 'projects', :action => 'calendar', :id => @project }, :class => "menuItem" %>
|
|
|
|
<%= link_to l(:label_gantt), {:controller => 'projects', :action => 'gantt', :id => @project }, :class => "menuItem" %>
|
|
|
|
<%= link_to l(:label_issue_plural), {:controller => 'projects', :action => 'list_issues', :id => @project, :set_filter => 1 }, :class => "menuItem" %>
|
|
|
|
<%= link_to l(:label_report_plural), {:controller => 'reports', :action => 'issue_report', :id => @project }, :class => "menuItem" %>
|
|
|
|
<%= link_to l(:label_activity), {:controller => 'projects', :action => 'activity', :id => @project }, :class => "menuItem" %>
|
|
|
|
<%= link_to l(:label_news_plural), {:controller => 'projects', :action => 'list_news', :id => @project }, :class => "menuItem" %>
|
|
|
|
<%= link_to l(:label_change_log), {:controller => 'projects', :action => 'changelog', :id => @project }, :class => "menuItem" %>
|
|
|
|
<%= link_to l(:label_roadmap), {:controller => 'projects', :action => 'roadmap', :id => @project }, :class => "menuItem" %>
|
|
|
|
<%= link_to l(:label_document_plural), {:controller => 'projects', :action => 'list_documents', :id => @project }, :class => "menuItem" %>
|
2007-03-17 20:44:29 +03:00
|
|
|
<%= link_to l(:label_wiki), {:controller => 'wiki', :id => @project, :page => nil }, :class => "menuItem" if @project.wiki and !@project.wiki.new_record? %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<%= link_to l(:label_attachment_plural), {:controller => 'projects', :action => 'list_files', :id => @project }, :class => "menuItem" %>
|
|
|
|
<%= link_to l(:label_search), {:controller => 'projects', :action => 'search', :id => @project }, :class => "menuItem" %>
|
|
|
|
<%= link_to l(:label_repository), {:controller => 'repositories', :action => 'show', :id => @project}, :class => "menuItem" if @project.repository and !@project.repository.new_record? %>
|
|
|
|
<%= link_to_if_authorized l(:label_settings), {:controller => 'projects', :action => 'settings', :id => @project }, :class => "menuItem" %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="subcontent">
|
|
|
|
|
|
|
|
<% unless @project.nil? || @project.id.nil? %>
|
|
|
|
<h2><%= @project.name %></h2>
|
|
|
|
<ul class="menublock">
|
|
|
|
<li><%= link_to l(:label_overview), :controller => 'projects', :action => 'show', :id => @project %></li>
|
|
|
|
<li><%= link_to l(:label_calendar), :controller => 'projects', :action => 'calendar', :id => @project %></li>
|
|
|
|
<li><%= link_to l(:label_gantt), :controller => 'projects', :action => 'gantt', :id => @project %></li>
|
|
|
|
<li><%= link_to l(:label_issue_plural), :controller => 'projects', :action => 'list_issues', :id => @project, :set_filter => 1 %></li>
|
|
|
|
<li><%= link_to l(:label_report_plural), :controller => 'reports', :action => 'issue_report', :id => @project %></li>
|
|
|
|
<li><%= link_to l(:label_activity), :controller => 'projects', :action => 'activity', :id => @project %></li>
|
|
|
|
<li><%= link_to l(:label_news_plural), :controller => 'projects', :action => 'list_news', :id => @project %></li>
|
|
|
|
<li><%= link_to l(:label_change_log), :controller => 'projects', :action => 'changelog', :id => @project %></li>
|
|
|
|
<li><%= link_to l(:label_roadmap), :controller => 'projects', :action => 'roadmap', :id => @project %></li>
|
|
|
|
<li><%= link_to l(:label_document_plural), :controller => 'projects', :action => 'list_documents', :id => @project %></li>
|
2007-04-21 22:06:01 +04:00
|
|
|
<%= content_tag("li", link_to(l(:label_wiki), :controller => 'wiki', :id => @project, :page => nil)) if @project.wiki and !@project.wiki.new_record? %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<li><%= link_to l(:label_attachment_plural), :controller => 'projects', :action => 'list_files', :id => @project %></li>
|
|
|
|
<li><%= link_to l(:label_search), :controller => 'projects', :action => 'search', :id => @project %></li>
|
2007-04-21 22:06:01 +04:00
|
|
|
<%= content_tag("li", link_to(l(:label_repository), :controller => 'repositories', :action => 'show', :id => @project)) if @project.repository and !@project.repository.new_record? %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<li><%= link_to_if_authorized l(:label_settings), :controller => 'projects', :action => 'settings', :id => @project %></li>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if loggedin? and @logged_in_user.memberships.length > 0 %>
|
|
|
|
<h2><%=l(:label_my_projects) %></h2>
|
|
|
|
<ul class="menublock">
|
|
|
|
<% for membership in @logged_in_user.memberships %>
|
|
|
|
<li><%= link_to membership.project.name, :controller => 'projects', :action => 'show', :id => membership.project %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2007-04-27 23:32:57 +04:00
|
|
|
|
2007-03-12 20:59:02 +03:00
|
|
|
<div id="content">
|
|
|
|
<% if flash[:notice] %><p style="color: green"><%= flash[:notice] %></p><% end %>
|
2007-04-09 00:43:57 +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">
|
|
|
|
<p><a href="http://redmine.rubyforge.org/">redMine</a> <small><%= Redmine::VERSION %> © 2006-2007 Jean-Philippe Lang</small></p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</body>
|
2006-06-28 22:11:03 +04:00
|
|
|
</html>
|