diff --git a/app/views/admin/projects.rhtml b/app/views/admin/projects.rhtml index d859a80..bd9ab76 100644 --- a/app/views/admin/projects.rhtml +++ b/app/views/admin/projects.rhtml @@ -1,5 +1,5 @@
-<%= link_to l(:label_project_new), {:controller => 'projects', :action => 'add'}, :class => 'icon icon-add' %> +<%= link_to l(:label_project_new), {:controller => 'projects', :action +=> 'new'}, :class => 'icon icon-add' %>

<%=l(:label_project_plural)%>

diff --git a/app/views/projects/index.rhtml b/app/views/projects/index.rhtml index e9c781e..0e21911 100644 --- a/app/views/projects/index.rhtml +++ b/app/views/projects/index.rhtml @@ -1,9 +1,9 @@
<% if authorize_global_implemented %> - <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'add'}, :class => 'icon icon-add') + ' |' if User.current.allowed + <%= link_to(l(:label_project_new), {:controller => 'projects', + :action => 'new'}, :class => 'icon icon-add') + ' |' if + User.current.allowed <%= link_to(l(:label_issue_view_all), { :controller => 'issues' }) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) % <% else %> - <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'add'}, :class => 'icon icon-add') + ' |' if User.current.admin? + <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') + ' |' if User.current.admin? <%= link_to l(:label_issue_view_all), { :controller => 'issues' } %> | <% end %> <%= 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 --- a/app/views/projects/show.rhtml +++ b/app/views/projects/show.rhtml @@ -1,6 +1,6 @@
<% if User.current.allowed_to?(:add_subprojects, @project) %> - <%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'add', :parent_id => @project}, :class => 'icon icon- + <%= link_to l(:label_subproject_new), {:controller => + 'projects', :action => 'new', :parent_id => @project}, :class => 'icon + icon- <% end %>