1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

Use named route.

git-svn-id: http://svn.redmine.org/redmine/trunk@15312 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2016-04-09 07:40:16 +00:00
parent 5adc1ddde9
commit 9c2545e28d

View File

@ -1,7 +1,7 @@
<% if User.current.allowed_to?(:add_issue_watchers, watched.project) %> <% if User.current.allowed_to?(:add_issue_watchers, watched.project) %>
<div class="contextual"> <div class="contextual">
<%= link_to l(:button_add), <%= link_to l(:button_add),
{:controller => 'watchers', :action => 'new', :object_type => watched.class.name.underscore, :object_id => watched}, new_watchers_path(:object_type => watched.class.name.underscore, :object_id => watched),
:remote => true, :remote => true,
:method => 'get' %> :method => 'get' %>
</div> </div>