From 47f5713b1e1cbe636582fd3f59fadc10dd8491a1 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 1 Mar 2009 12:03:48 +0000 Subject: Reorder links refactoring (follows r2526). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2546 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/roles/list.rhtml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'app/views/roles') diff --git a/app/views/roles/list.rhtml b/app/views/roles/list.rhtml index 93b821387..32ff7160c 100644 --- a/app/views/roles/list.rhtml +++ b/app/views/roles/list.rhtml @@ -16,10 +16,7 @@ <%= content_tag(role.builtin? ? 'em' : 'span', link_to(role.name, :action => 'edit', :id => role)) %> <% unless role.builtin? %> - <%= link_to image_tag('2uparrow.png', :alt => l(:label_sort_highest)), {:action => 'move', :id => role, :position => 'highest'}, :method => :post, :title => l(:label_sort_highest) %> - <%= link_to image_tag('1uparrow.png', :alt => l(:label_sort_higher)), {:action => 'move', :id => role, :position => 'higher'}, :method => :post, :title => l(:label_sort_higher) %> - - <%= link_to image_tag('1downarrow.png', :alt => l(:label_sort_lower)), {:action => 'move', :id => role, :position => 'lower'}, :method => :post, :title => l(:label_sort_lower) %> - <%= link_to image_tag('2downarrow.png', :alt => l(:label_sort_lowest)), {:action => 'move', :id => role, :position => 'lowest'}, :method => :post, :title => l(:label_sort_lowest) %> + <%= reorder_links('role', {:action => 'edit', :id => role}) %> <% end %> -- cgit v1.2.3