2006-06-28 22:11:03 +04: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>
|
2006-11-12 21:50:30 +03:00
|
|
|
<title><%= $RDM_HEADER_TITLE + (@html_title ? ": #{@html_title}" : "") %></title>
|
2006-06-28 22:11:03 +04:00
|
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
|
|
<meta name="description" content="redMine" />
|
|
|
|
<meta name="keywords" content="issue,bug,tracker" />
|
|
|
|
<%= stylesheet_link_tag "application" %>
|
2006-12-10 23:34:51 +03:00
|
|
|
<%= stylesheet_link_tag "print", :media => "print" %>
|
2006-06-28 22:11:03 +04:00
|
|
|
<%= javascript_include_tag :defaults %>
|
2006-07-29 13:32:58 +04:00
|
|
|
<%= javascript_include_tag 'menu' %>
|
2006-10-14 11:44:00 +04:00
|
|
|
<%= javascript_include_tag 'calendar/calendar' %>
|
|
|
|
<%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %>
|
|
|
|
<%= javascript_include_tag 'calendar/calendar-setup' %>
|
2006-10-15 13:00:05 +04:00
|
|
|
<%= stylesheet_link_tag 'calendar' %>
|
2006-11-05 19:49:27 +03:00
|
|
|
<%= stylesheet_link_tag 'jstoolbar' %>
|
2006-12-26 19:19:12 +03:00
|
|
|
<!-- page specific tags -->
|
|
|
|
<%= yield :header_tags %>
|
2006-06-28 22:11:03 +04:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div id="container" >
|
|
|
|
|
|
|
|
<div id="header">
|
|
|
|
<div style="float: left;">
|
2006-07-29 13:32:58 +04:00
|
|
|
<h1><%= $RDM_HEADER_TITLE %></h1>
|
|
|
|
<h2><%= $RDM_HEADER_SUBTITLE %></h2>
|
2006-06-28 22:11:03 +04:00
|
|
|
</div>
|
|
|
|
<div style="float: right; padding-right: 1em; padding-top: 0.2em;">
|
2006-07-29 13:32:58 +04:00
|
|
|
<% if loggedin? %><small><%=l(:label_logged_as)%> <b><%= @logged_in_user.login %></b></small><% end %>
|
2006-06-28 22:11:03 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="navigation">
|
|
|
|
<ul>
|
2006-07-29 13:32:58 +04:00
|
|
|
<li class="selected"><%= link_to l(:label_home), { :controller => '' }, :class => "picHome" %></li>
|
2006-12-03 22:55:45 +03:00
|
|
|
<li><%= link_to l(:label_my_page), { :controller => 'my', :action => 'page'}, :class => "picUserPage" %></li>
|
2006-07-29 13:32:58 +04:00
|
|
|
<li><%= link_to l(:label_project_plural), { :controller => 'projects' }, :class => "picProject" %></li>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<% unless @project.nil? || @project.id.nil? %>
|
2006-12-26 13:11:55 +03:00
|
|
|
<li class="submenu"><%= link_to @project.name, { :controller => 'projects', :action => 'show', :id => @project }, :class => "picProject", :onmouseover => "buttonMouseover(event, 'menuProject');" %></li>
|
2006-07-29 13:32:58 +04:00
|
|
|
<% end %>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<% if loggedin? %>
|
2006-12-03 22:55:45 +03:00
|
|
|
<li><%= link_to l(:label_my_account), { :controller => 'my', :action => 'account' }, :class => "picUser" %></li>
|
2006-07-29 13:32:58 +04:00
|
|
|
<% end %>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<% if admin_loggedin? %>
|
2006-12-26 13:11:55 +03:00
|
|
|
<li class="submenu"><%= link_to l(:label_administration), { :controller => 'admin' }, :class => "picAdmin", :onmouseover => "buttonMouseover(event, 'menuAdmin');" %></li>
|
2006-07-29 13:32:58 +04:00
|
|
|
<% end %>
|
|
|
|
|
2006-12-27 00:33:44 +03:00
|
|
|
<li class="right"><%= link_to l(:label_help), { :controller => 'help', :ctrl => params[:controller], :page => params[:action] }, :target => "new", :class => "picHelp" %></li>
|
2006-07-29 13:32:58 +04:00
|
|
|
|
|
|
|
<% if loggedin? %>
|
|
|
|
<li class="right"><%= link_to l(:label_logout), { :controller => 'account', :action => 'logout' }, :class => "picUser" %></li>
|
|
|
|
<% else %>
|
|
|
|
<li class="right"><%= link_to l(:label_login), { :controller => 'account', :action => 'login' }, :class => "picUser" %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
2006-06-28 22:11:03 +04:00
|
|
|
</div>
|
2006-12-13 22:57:19 +03:00
|
|
|
|
|
|
|
<% if admin_loggedin? %>
|
|
|
|
<div id="menuAdmin" class="menu" onmouseover="menuMouseover(event)">
|
|
|
|
<a class="menuItem" href="/admin/projects" onmouseover="menuItemMouseover(event,'menuProjects');"><span class="menuItemText"><%=l(:label_project_plural)%></span><span class="menuItemArrow">▶</span></a>
|
|
|
|
<a class="menuItem" href="/users" onmouseover="menuItemMouseover(event,'menuUsers');"><span class="menuItemText"><%=l(:label_user_plural)%></span><span class="menuItemArrow">▶</span></a>
|
|
|
|
<a class="menuItem" href="/roles"><%=l(:label_role_and_permissions)%></a>
|
|
|
|
<a class="menuItem" href="/trackers" onmouseover="menuItemMouseover(event,'menuTrackers');"><span class="menuItemText"><%=l(:label_tracker_plural)%></span><span class="menuItemArrow">▶</span></a>
|
|
|
|
<a class="menuItem" href="/custom_fields"><%=l(:label_custom_field_plural)%></a>
|
|
|
|
<a class="menuItem" href="/enumerations"><%=l(:label_enumerations)%></a>
|
|
|
|
<a class="menuItem" href="/admin/mail_options"><%=l(:field_mail_notification)%></a>
|
|
|
|
<a class="menuItem" href="/auth_sources"><%=l(:label_authentication)%></a>
|
|
|
|
<a class="menuItem" href="/admin/info"><%=l(:label_information_plural)%></a>
|
|
|
|
</div>
|
|
|
|
<div id="menuTrackers" class="menu">
|
|
|
|
<a class="menuItem" href="/issue_statuses"><%=l(:label_issue_status_plural)%></a>
|
|
|
|
<a class="menuItem" href="/roles/workflow"><%=l(:label_workflow)%></a>
|
|
|
|
</div>
|
|
|
|
<div id="menuProjects" class="menu"><a class="menuItem" href="/projects/add"><%=l(:label_new)%></a></div>
|
|
|
|
<div id="menuUsers" class="menu"><a class="menuItem" href="/users/add"><%=l(:label_new)%></a></div>
|
|
|
|
<% 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 }, :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_document_plural), {:controller => 'projects', :action => 'list_documents', :id => @project }, :class => "menuItem" %>
|
|
|
|
<%= link_to l(:label_member_plural), {:controller => 'projects', :action => 'list_members', :id => @project }, :class => "menuItem" %>
|
|
|
|
<%= link_to l(:label_attachment_plural), {:controller => 'projects', :action => 'list_files', :id => @project }, :class => "menuItem" %>
|
2006-12-24 19:35:25 +03:00
|
|
|
<%= link_to l(:label_repository), {:controller => 'repositories', :action => 'show', :id => @project}, :class => "menuItem" if @project.repository and !@project.repository.new_record? %>
|
2006-12-13 22:57:19 +03:00
|
|
|
<%= link_to_if_authorized l(:label_settings), {:controller => 'projects', :action => 'settings', :id => @project }, :class => "menuItem" %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2006-06-28 22:11:03 +04:00
|
|
|
|
|
|
|
<div id="subcontent">
|
|
|
|
|
|
|
|
<% unless @project.nil? || @project.id.nil? %>
|
|
|
|
<h2><%= @project.name %></h2>
|
|
|
|
<ul class="menublock">
|
2006-07-29 23:54:22 +04:00
|
|
|
<li><%= link_to l(:label_overview), :controller => 'projects', :action => 'show', :id => @project %></li>
|
2006-11-12 21:50:30 +03:00
|
|
|
<li><%= link_to l(:label_calendar), :controller => 'projects', :action => 'calendar', :id => @project %></li>
|
2006-12-07 00:13:46 +03:00
|
|
|
<li><%= link_to l(:label_gantt), :controller => 'projects', :action => 'gantt', :id => @project %></li>
|
2006-07-29 23:54:22 +04:00
|
|
|
<li><%= link_to l(:label_issue_plural), :controller => 'projects', :action => 'list_issues', :id => @project %></li>
|
|
|
|
<li><%= link_to l(:label_report_plural), :controller => 'reports', :action => 'issue_report', :id => @project %></li>
|
2006-11-05 19:49:27 +03:00
|
|
|
<li><%= link_to l(:label_activity), :controller => 'projects', :action => 'activity', :id => @project %></li>
|
2006-07-29 23:54:22 +04:00
|
|
|
<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_document_plural), :controller => 'projects', :action => 'list_documents', :id => @project %></li>
|
|
|
|
<li><%= link_to l(:label_member_plural), :controller => 'projects', :action => 'list_members', :id => @project %></li>
|
|
|
|
<li><%= link_to l(:label_attachment_plural), :controller => 'projects', :action => 'list_files', :id => @project %></li>
|
2006-12-24 16:38:45 +03:00
|
|
|
<li><%= link_to l(:label_repository), :controller => 'repositories', :action => 'show', :id => @project if @project.repository and !@project.repository.new_record? %></li>
|
2006-07-29 23:54:22 +04:00
|
|
|
<li><%= link_to_if_authorized l(:label_settings), :controller => 'projects', :action => 'settings', :id => @project %></li>
|
2006-06-28 22:11:03 +04:00
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<% if loggedin? and @logged_in_user.memberships.length > 0 %>
|
2006-07-29 23:54:22 +04:00
|
|
|
<h2><%=l(:label_my_projects) %></h2>
|
2006-06-28 22:11:03 +04:00
|
|
|
<ul class="menublock">
|
2006-07-29 13:32:58 +04:00
|
|
|
<% for membership in @logged_in_user.memberships %>
|
2006-06-28 22:11:03 +04:00
|
|
|
<li><%= link_to membership.project.name, :controller => 'projects', :action => 'show', :id => membership.project %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
2006-11-12 21:50:30 +03:00
|
|
|
<% end %>
|
2006-06-28 22:11:03 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="content">
|
|
|
|
<% if flash[:notice] %><p style="color: green"><%= flash[:notice] %></p><% end %>
|
|
|
|
<%= @content_for_layout %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="footer">
|
2006-07-29 13:32:58 +04:00
|
|
|
<p>
|
|
|
|
<%= auto_link $RDM_FOOTER_SIG %> |
|
2006-11-28 01:31:14 +03:00
|
|
|
<a href="http://redmine.rubyforge.org/" target="_new"><%= RDM_APP_NAME %></a> <%= RDM_APP_VERSION %>
|
2006-07-29 13:32:58 +04:00
|
|
|
</p>
|
2006-06-28 22:11:03 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|