Skip to content

Commit 05c532b

Browse files
committed
shorten long line of GroupsHelper
git-svn-id: http://svn.redmine.org/redmine/trunk@20138 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent 25bd274 commit 05c532b

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

app/helpers/groups_helper.rb

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,18 @@ def render_principals_for_new_group_users(group, limit=100)
3636
content_tag('div', principals_check_box_tags('user_ids[]', principals), :id => 'principals'),
3737
:class => 'objects-selection'
3838
)
39-
links = pagination_links_full(principal_pages, principal_count, :per_page_links => false) {|text, parameters, options|
40-
link_to text, autocomplete_for_user_group_path(group, parameters.merge(:q => params[:q], :format => 'js')), :remote => true
41-
}
39+
links =
40+
pagination_links_full(principal_pages, principal_count,
41+
:per_page_links => false) do |text, parameters, options|
42+
link_to(
43+
text,
44+
autocomplete_for_user_group_path(
45+
group,
46+
parameters.merge(:q => params[:q], :format => 'js')
47+
),
48+
:remote => true
49+
)
50+
end
4251
s + content_tag('span', links, :class => 'pagination')
4352
end
4453
end

0 commit comments

Comments
 (0)