@@ -1,138 +1,138 | |||
|
1 | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
|
2 | 2 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
|
3 | 3 | <head> |
|
4 | 4 | <title><%= Setting.app_title + (@html_title ? ": #{@html_title}" : "") %></title> |
|
5 | 5 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
|
6 | 6 | <meta name="description" content="redMine" /> |
|
7 | 7 | <meta name="keywords" content="issue,bug,tracker" /> |
|
8 | 8 | <!--[if IE]> |
|
9 | 9 | <style type="text/css"> |
|
10 | 10 | body {behavior: url(<%= stylesheet_path "csshover.htc" %>);} |
|
11 | 11 | </style> |
|
12 | 12 | <![endif]--> |
|
13 | 13 | <%= stylesheet_link_tag "application" %> |
|
14 | 14 | <%= stylesheet_link_tag "print", :media => "print" %> |
|
15 | 15 | <%= javascript_include_tag :defaults %> |
|
16 | 16 | <%= javascript_include_tag 'menu' %> |
|
17 | 17 | <%= stylesheet_link_tag 'jstoolbar' %> |
|
18 | 18 | <!-- page specific tags --><%= yield :header_tags %> |
|
19 | 19 | </head> |
|
20 | 20 | |
|
21 | 21 | <body> |
|
22 | 22 | <div id="container" > |
|
23 | 23 | |
|
24 | 24 | <div id="header"> |
|
25 | 25 | <div style="float: left;"> |
|
26 | 26 | <h1><%= Setting.app_title %></h1> |
|
27 | 27 | <h2><%= Setting.app_subtitle %></h2> |
|
28 | 28 | </div> |
|
29 | 29 | <div style="float: right; padding-right: 1em; padding-top: 0.2em;"> |
|
30 | 30 | <% if loggedin? %><small><%=l(:label_logged_as)%> <strong><%= @logged_in_user.login %></strong> -</small><% end %> |
|
31 | 31 | <small><%= toggle_link l(:label_search), 'quick-search-form', :focus => 'quick-search-input' %></small> |
|
32 | 32 | <% form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get, :id => 'quick-search-form', :style => "display:none;" ) do %> |
|
33 | 33 | <%= text_field_tag 'q', @question, :size => 15, :class => 'small', :id => 'quick-search-input' %> |
|
34 | 34 | <% end %> |
|
35 | 35 | </div> |
|
36 | 36 | </div> |
|
37 | 37 | |
|
38 | 38 | <div id="navigation"> |
|
39 | 39 | <ul> |
|
40 | 40 | <li><%= link_to l(:label_home), { :controller => 'welcome' }, :class => "icon icon-home" %></li> |
|
41 | 41 | <li><%= link_to l(:label_my_page), { :controller => 'my', :action => 'page'}, :class => "icon icon-mypage" %></li> |
|
42 | 42 | <li><%= link_to l(:label_project_plural), { :controller => 'projects' }, :class => "icon icon-projects" %></li> |
|
43 | 43 | |
|
44 | 44 | <% unless @project.nil? || @project.id.nil? %> |
|
45 | 45 | <li class="submenu"><%= link_to @project.name, { :controller => 'projects', :action => 'show', :id => @project }, :class => "icon icon-projects", :onmouseover => "buttonMouseover(event, 'menuProject');" %></li> |
|
46 | 46 | <% end %> |
|
47 | 47 | |
|
48 | 48 | <% if loggedin? %> |
|
49 | 49 | <li><%= link_to l(:label_my_account), { :controller => 'my', :action => 'account' }, :class => "icon icon-user" %></li> |
|
50 | 50 | <% end %> |
|
51 | 51 | |
|
52 | 52 | <% if admin_loggedin? %> |
|
53 | 53 | <li class="submenu"><%= link_to l(:label_administration), { :controller => 'admin' }, :class => "icon icon-admin", :onmouseover => "buttonMouseover(event, 'menuAdmin');" %></li> |
|
54 | 54 | <% end %> |
|
55 | 55 | |
|
56 | 56 | <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> |
|
57 | 57 | |
|
58 | 58 | <% if loggedin? %> |
|
59 | 59 | <li class="right"><%= link_to l(:label_logout), { :controller => 'account', :action => 'logout' }, :class => "icon icon-user" %></li> |
|
60 | 60 | <% else %> |
|
61 | 61 | <li class="right"><%= link_to l(:label_login), { :controller => 'account', :action => 'login' }, :class => "icon icon-user" %></li> |
|
62 | 62 | <% end %> |
|
63 | 63 | </ul> |
|
64 | 64 | </div> |
|
65 | 65 | |
|
66 | 66 | <% if admin_loggedin? %> |
|
67 | 67 | <%= render :partial => 'admin/menu' %> |
|
68 | 68 | <% end %> |
|
69 | 69 | |
|
70 | 70 | <% unless @project.nil? || @project.id.nil? %> |
|
71 | 71 | <div id="menuProject" class="menu" onmouseover="menuMouseover(event)"> |
|
72 | 72 | <%= link_to l(:label_calendar), {:controller => 'projects', :action => 'calendar', :id => @project }, :class => "menuItem" %> |
|
73 | 73 | <%= link_to l(:label_gantt), {:controller => 'projects', :action => 'gantt', :id => @project }, :class => "menuItem" %> |
|
74 |
<%= link_to l(:label_issue_plural), {:controller => 'projects', :action => 'list_issues', :id => @project |
|
|
74 | <%= link_to l(:label_issue_plural), {:controller => 'projects', :action => 'list_issues', :id => @project }, :class => "menuItem" %> | |
|
75 | 75 | <%= link_to l(:label_report_plural), {:controller => 'reports', :action => 'issue_report', :id => @project }, :class => "menuItem" %> |
|
76 | 76 | <%= link_to l(:label_activity), {:controller => 'projects', :action => 'activity', :id => @project }, :class => "menuItem" %> |
|
77 | 77 | <%= link_to l(:label_news_plural), {:controller => 'projects', :action => 'list_news', :id => @project }, :class => "menuItem" %> |
|
78 | 78 | <%= link_to l(:label_change_log), {:controller => 'projects', :action => 'changelog', :id => @project }, :class => "menuItem" %> |
|
79 | 79 | <%= link_to l(:label_roadmap), {:controller => 'projects', :action => 'roadmap', :id => @project }, :class => "menuItem" %> |
|
80 | 80 | <%= link_to l(:label_document_plural), {:controller => 'projects', :action => 'list_documents', :id => @project }, :class => "menuItem" %> |
|
81 | 81 | <%= link_to l(:label_wiki), {:controller => 'wiki', :id => @project, :page => nil }, :class => "menuItem" if @project.wiki and !@project.wiki.new_record? %> |
|
82 | 82 | <%= link_to l(:label_attachment_plural), {:controller => 'projects', :action => 'list_files', :id => @project }, :class => "menuItem" %> |
|
83 | 83 | <%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project }, :class => "menuItem" %> |
|
84 | 84 | <%= link_to l(:label_repository), {:controller => 'repositories', :action => 'show', :id => @project}, :class => "menuItem" if @project.repository and !@project.repository.new_record? %> |
|
85 | 85 | <%= link_to_if_authorized l(:label_settings), {:controller => 'projects', :action => 'settings', :id => @project }, :class => "menuItem" %> |
|
86 | 86 | </div> |
|
87 | 87 | <% end %> |
|
88 | 88 | |
|
89 | 89 | |
|
90 | 90 | <div id="subcontent"> |
|
91 | 91 | |
|
92 | 92 | <% unless @project.nil? || @project.id.nil? %> |
|
93 | 93 | <h2><%= @project.name %></h2> |
|
94 | 94 | <ul class="menublock"> |
|
95 | 95 | <li><%= link_to l(:label_overview), :controller => 'projects', :action => 'show', :id => @project %></li> |
|
96 | 96 | <li><%= link_to l(:label_calendar), :controller => 'projects', :action => 'calendar', :id => @project %></li> |
|
97 | 97 | <li><%= link_to l(:label_gantt), :controller => 'projects', :action => 'gantt', :id => @project %></li> |
|
98 |
<li><%= link_to l(:label_issue_plural), :controller => 'projects', :action => 'list_issues', :id => @project |
|
|
98 | <li><%= link_to l(:label_issue_plural), :controller => 'projects', :action => 'list_issues', :id => @project %></li> | |
|
99 | 99 | <li><%= link_to l(:label_report_plural), :controller => 'reports', :action => 'issue_report', :id => @project %></li> |
|
100 | 100 | <li><%= link_to l(:label_activity), :controller => 'projects', :action => 'activity', :id => @project %></li> |
|
101 | 101 | <li><%= link_to l(:label_news_plural), :controller => 'projects', :action => 'list_news', :id => @project %></li> |
|
102 | 102 | <li><%= link_to l(:label_change_log), :controller => 'projects', :action => 'changelog', :id => @project %></li> |
|
103 | 103 | <li><%= link_to l(:label_roadmap), :controller => 'projects', :action => 'roadmap', :id => @project %></li> |
|
104 | 104 | <li><%= link_to l(:label_document_plural), :controller => 'projects', :action => 'list_documents', :id => @project %></li> |
|
105 | 105 | <%= content_tag("li", link_to(l(:label_wiki), :controller => 'wiki', :id => @project, :page => nil)) if @project.wiki and !@project.wiki.new_record? %> |
|
106 | 106 | <li><%= link_to l(:label_attachment_plural), :controller => 'projects', :action => 'list_files', :id => @project %></li> |
|
107 | 107 | <li><%= link_to l(:label_search), :controller => 'search', :action => 'index', :id => @project %></li> |
|
108 | 108 | <%= content_tag("li", link_to(l(:label_repository), :controller => 'repositories', :action => 'show', :id => @project)) if @project.repository and !@project.repository.new_record? %> |
|
109 | 109 | <li><%= link_to_if_authorized l(:label_settings), :controller => 'projects', :action => 'settings', :id => @project %></li> |
|
110 | 110 | </ul> |
|
111 | 111 | <% end %> |
|
112 | 112 | |
|
113 | 113 | <% if loggedin? and @logged_in_user.memberships.length > 0 %> |
|
114 | 114 | <h2><%=l(:label_my_projects) %></h2> |
|
115 | 115 | <ul class="menublock"> |
|
116 | 116 | <% for membership in @logged_in_user.memberships %> |
|
117 | 117 | <li><%= link_to membership.project.name, :controller => 'projects', :action => 'show', :id => membership.project %></li> |
|
118 | 118 | <% end %> |
|
119 | 119 | </ul> |
|
120 | 120 | <% end %> |
|
121 | 121 | </div> |
|
122 | 122 | |
|
123 | 123 | <div id="content"> |
|
124 | 124 | <% if flash[:notice] %><p style="color: green"><%= flash[:notice] %></p><% end %> |
|
125 | 125 | <%= yield %> |
|
126 | 126 | </div> |
|
127 | 127 | |
|
128 | 128 | <div id="ajax-indicator" style="display:none;"> |
|
129 | 129 | <span><%= l(:label_loading) %></span> |
|
130 | 130 | </div> |
|
131 | 131 | |
|
132 | 132 | <div id="footer"> |
|
133 | 133 | <p><a href="http://redmine.rubyforge.org/">redMine</a> <small><%= Redmine::VERSION %> © 2006-2007 Jean-Philippe Lang</small></p> |
|
134 | 134 | </div> |
|
135 | 135 | |
|
136 | 136 | </div> |
|
137 | 137 | </body> |
|
138 | 138 | </html> No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now