diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-26 14:53:52 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-26 14:53:52 +0000 |
commit | bb8e2beeac3663848f81a1badc77dfd2b12ff68a (patch) | |
tree | 0c1c4800989034a3d35b816af376614d644b079d /app/views/projects/settings/_versions.html.erb | |
parent | 307e97cc034dcea598ccbf3032df7a14402b700d (diff) | |
download | redmine-bb8e2beeac3663848f81a1badc77dfd2b12ff68a.tar.gz redmine-bb8e2beeac3663848f81a1badc77dfd2b12ff68a.zip |
Version routes cleanup in views.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7936 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects/settings/_versions.html.erb')
-rw-r--r-- | app/views/projects/settings/_versions.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/settings/_versions.html.erb b/app/views/projects/settings/_versions.html.erb index 7fc7dd272..785dcfa71 100644 --- a/app/views/projects/settings/_versions.html.erb +++ b/app/views/projects/settings/_versions.html.erb @@ -38,4 +38,4 @@ <% end %> </div> -<p><%= link_to_if_authorized l(:label_version_new), {:controller => 'versions', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %></p> +<p><%= link_to l(:label_version_new), new_project_version_path(@project), :class => 'icon icon-add' if User.current.allowed_to?(:manage_versions, @project) %></p> |