Project

General

Profile

RE: Projects Tree View Plugin - Version 0.0.1 ยป patch_treeview404.txt

Joseph Potvin, 2010-11-17 03:17

 
1
diff --git a/app/views/admin/projects.rhtml b/app/views/admin/projects.rhtml index d859a80..bd9ab76 100644
2
--- a/app/views/admin/projects.rhtml
3
+++ b/app/views/admin/projects.rhtml
4
@@ -1,5 +1,5 @@
5
 <div class="contextual">
6
-<%= link_to l(:label_project_new), {:controller => 'projects', :action => 'add'}, :class => 'icon icon-add' %>
7
+<%= link_to l(:label_project_new), {:controller => 'projects', :action 
8
+=> 'new'}, :class => 'icon icon-add' %>
9
 </div>
10
 
11
 <h2><%=l(:label_project_plural)%></h2>
12
diff --git a/app/views/projects/index.rhtml b/app/views/projects/index.rhtml index e9c781e..0e21911 100644
13
--- a/app/views/projects/index.rhtml
14
+++ b/app/views/projects/index.rhtml
15
@@ -1,9 +1,9 @@
16
 <div class="contextual">
17
     <% if authorize_global_implemented %>
18
-      <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'add'}, :class => 'icon icon-add') + ' |' if User.current.allowed
19
+      <%= link_to(l(:label_project_new), {:controller => 'projects', 
20
+ :action => 'new'}, :class => 'icon icon-add') + ' |' if 
21
+ User.current.allowed
22
       <%= link_to(l(:label_issue_view_all), { :controller => 'issues' }) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) %
23
     <% else %>
24
-      <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'add'}, :class => 'icon icon-add') + ' |' if User.current.admin? 
25
+      <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') + ' |' if User.current.admin? 
26
       <%= link_to l(:label_issue_view_all), { :controller => 'issues' } %> |
27
     <% end %>
28
     <%= link_to l(:label_overall_activity), { :controller => 'activities', :action => 'index' }%> diff --git a/app/views/projects/show.rhtml b/app/views/projects/show.rhtml index b3a282a..9acdbda 100644
29
--- a/app/views/projects/show.rhtml
30
+++ b/app/views/projects/show.rhtml
31
@@ -1,6 +1,6 @@
32
 <div class="contextual">
33
        <% if User.current.allowed_to?(:add_subprojects, @project) %>
34
-               <%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'add', :parent_id => @project}, :class => 'icon icon-
35
+               <%= link_to l(:label_subproject_new), {:controller => 
36
+ 'projects', :action => 'new', :parent_id => @project}, :class => 'icon 
37
+ icon-
38
        <% end %>
39
 </div>
    (1-1/1)