Project

General

Profile

Defect #1 » base.rhtml-PATCH.txt

Todd McGrath, 2008-02-03 10:48

 
1
Index: C:/rubyworkspace/redmine-trunk/app/views/layouts/base.rhtml
2
===================================================================
3
--- C:/rubyworkspace/redmine-trunk/app/views/layouts/base.rhtml	(revision 127)
4
+++ C:/rubyworkspace/redmine-trunk/app/views/layouts/base.rhtml	(working copy)
5
@@ -81,17 +81,17 @@
6
     
7
     <% unless @project.nil? || @project.id.nil? %>
8
     <div id="menuProject" class="menu" onmouseover="menuMouseover(event)">
9
-        <%= link_to l(:label_calendar), {:controller => 'projects', :action => 'calendar', :id => @project }, :class => "menuItem" %>
10
-        <%= link_to l(:label_gantt), {:controller => 'projects', :action => 'gantt', :id => @project }, :class => "menuItem" %>
11
-        <%= link_to l(:label_issue_plural), {:controller => 'projects', :action => 'list_issues', :id => @project }, :class => "menuItem" %>
12
-        <%= link_to l(:label_report_plural), {:controller => 'reports', :action => 'issue_report', :id => @project }, :class => "menuItem" %>
13
-        <%= link_to l(:label_activity), {:controller => 'projects', :action => 'activity', :id => @project }, :class => "menuItem" %>
14
-        <%= link_to l(:label_news_plural), {:controller => 'projects', :action => 'list_news', :id => @project }, :class => "menuItem" %>
15
-        <%= link_to l(:label_change_log), {:controller => 'projects', :action => 'changelog', :id => @project }, :class => "menuItem" %>
16
-        <%= link_to l(:label_document_plural), {:controller => 'projects', :action => 'list_documents', :id => @project }, :class => "menuItem" %>
17
-        <%= link_to l(:label_member_plural), {:controller => 'projects', :action => 'list_members', :id => @project }, :class => "menuItem" %>
18
-        <%= link_to l(:label_attachment_plural), {:controller => 'projects', :action => 'list_files', :id => @project }, :class => "menuItem" %>
19
-        <%= link_to l(:label_repository), {:controller => 'repositories', :action => 'show', :id => @project}, :class => "menuItem" if @project.repository and !@project.repository.new_record? %>
20
+        <%= link_to_if_authorized l(:label_calendar), {:controller => 'projects', :action => 'calendar', :id => @project }, :class => "menuItem" %>
21
+        <%= link_to_if_authorized l(:label_gantt), {:controller => 'projects', :action => 'gantt', :id => @project }, :class => "menuItem" %>
22
+        <%= link_to_if_authorized l(:label_issue_plural), {:controller => 'projects', :action => 'list_issues', :id => @project }, :class => "menuItem" %>
23
+        <%= link_to_if_authorized l(:label_report_plural), {:controller => 'reports', :action => 'issue_report', :id => @project }, :class => "menuItem" %>
24
+        <%= link_to_if_authorized l(:label_activity), {:controller => 'projects', :action => 'activity', :id => @project }, :class => "menuItem" %>
25
+        <%= link_to_if_authorized l(:label_news_plural), {:controller => 'projects', :action => 'list_news', :id => @project }, :class => "menuItem" %>
26
+        <%= link_to_if_authorized l(:label_change_log), {:controller => 'projects', :action => 'changelog', :id => @project }, :class => "menuItem" %>
27
+        <%= link_to_if_authorized l(:label_document_plural), {:controller => 'projects', :action => 'list_documents', :id => @project }, :class => "menuItem" %>
28
+        <%= link_to_if_authorized l(:label_member_plural), {:controller => 'projects', :action => 'list_members', :id => @project }, :class => "menuItem" %>
29
+        <%= link_to_if_authorized l(:label_attachment_plural), {:controller => 'projects', :action => 'list_files', :id => @project }, :class => "menuItem" %>
30
+        <%= link_to_if_authorized l(:label_repository), {:controller => 'repositories', :action => 'show', :id => @project}, :class => "menuItem" if @project.repository and !@project.repository.new_record? %>
31
         <%= link_to_if_authorized l(:label_settings), {:controller => 'projects', :action => 'settings', :id => @project }, :class => "menuItem" %>
32
     </div>
33
     <% end %>
34
@@ -102,21 +102,22 @@
35
 		<% unless @project.nil? || @project.id.nil? %>
36
 			<h2><%= @project.name %></h2>
37
 			<ul class="menublock">
38
-				<li><%= link_to l(:label_overview), :controller => 'projects', :action => 'show', :id => @project %></li>
39
-				<li><%= link_to l(:label_calendar), :controller => 'projects', :action => 'calendar', :id => @project %></li>
40
-				<li><%= link_to l(:label_gantt), :controller => 'projects', :action => 'gantt', :id => @project %></li>
41
-				<li><%= link_to l(:label_issue_plural), :controller => 'projects', :action => 'list_issues', :id => @project %></li>
42
-				<li><%= link_to l(:label_report_plural), :controller => 'reports', :action => 'issue_report', :id => @project %></li>
43
-				<li><%= link_to l(:label_activity), :controller => 'projects', :action => 'activity', :id => @project %></li>
44
-				<li><%= link_to l(:label_news_plural), :controller => 'projects', :action => 'list_news', :id => @project %></li>
45
-				<li><%= link_to l(:label_change_log), :controller => 'projects', :action => 'changelog', :id => @project %></li>
46
-				<li><%= link_to l(:label_document_plural), :controller => 'projects', :action => 'list_documents', :id => @project %></li>
47
-				<li><%= link_to l(:label_member_plural), :controller => 'projects', :action => 'list_members', :id => @project %></li>
48
-				<li><%= link_to l(:label_attachment_plural), :controller => 'projects', :action => 'list_files', :id => @project %></li>
49
-				<li><%= link_to l(:label_repository), :controller => 'repositories', :action => 'show', :id => @project if @project.repository and !@project.repository.new_record? %></li>
50
-				<li><%= link_to_if_authorized l(:label_settings), :controller => 'projects', :action => 'settings', :id => @project %></li>
51
+				<%= link_to_if_authorized_li l(:label_overview), :controller => 'projects', :action => 'show', :id => @project %>
52
+				<%= link_to_if_authorized_li l(:label_calendar), :controller => 'projects', :action => 'calendar', :id => @project %>
53
+				<%= link_to_if_authorized_li l(:label_gantt), :controller => 'projects', :action => 'gantt', :id => @project %>
54
+				<%= link_to_if_authorized_li l(:label_issue_plural), :controller => 'projects', :action => 'list_issues', :id => @project %>
55
+				<%= link_to_if_authorized_li l(:label_report_plural), :controller => 'reports', :action => 'issue_report', :id => @project %>
56
+				<%= link_to_if_authorized_li l(:label_activity), :controller => 'projects', :action => 'activity', :id => @project %>
57
+				<%= link_to_if_authorized_li l(:label_news_plural), :controller => 'projects', :action => 'list_news', :id => @project %>
58
+				<%= link_to_if_authorized_li l(:label_change_log), :controller => 'projects', :action => 'changelog', :id => @project %>
59
+				<%= link_to_if_authorized_li l(:label_document_plural), :controller => 'projects', :action => 'list_documents', :id => @project %>
60
+				<%= link_to_if_authorized_li l(:label_member_plural), :controller => 'projects', :action => 'list_members', :id => @project %>
61
+				<%= link_to_if_authorized_li l(:label_attachment_plural), :controller => 'projects', :action => 'list_files', :id => @project %>
62
+				<%= link_to_if_authorized_li l(:label_repository), :controller => 'repositories', :action => 'show', :id => @project if @project.repository and !@project.repository.new_record? %>
63
+				<%= link_to_if_authorized_li l(:label_settings), :controller => 'projects', :action => 'settings', :id => @project %>
64
 			</ul>
65
 		<% end %>
66
+
67
 		
68
 		<% if loggedin? and @logged_in_user.memberships.length > 0 %>
69
 			<h2><%=l(:label_my_projects) %></h2>
(2-2/4)