]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user_blocks/_block.html.erb
Merge pull request #3581 from harry-wood/discourage-note-report
[rails.git] / app / views / user_blocks / _block.html.erb
index b309e9e119bd661b023b05fc2a5d537739b91dd7..f39efb571ecc477b044fe5e7f829f99ca793b2e7 100644 (file)
@@ -17,6 +17,6 @@
   <td><%= link_to t(".show"), block %></td>
   <td><% if current_user and current_user.id == block.creator_id and block.active? %><%= link_to t(".edit"), edit_user_block_path(block) %><% end %></td>
   <% if show_revoke_link %>
-  <td><% if block.active? %><%= link_to t(".revoke"), :controller => "user_blocks", :action => "revoke", :id => block.id %><% end %></td>
+  <td><% if block.active? %><%= link_to t(".revoke"), revoke_user_block_path(block) %><% end %></td>
   <% end %>
 </tr>