mirror of
https://github.com/redmine/redmine.git
synced 2025-11-09 14:56:01 +01:00
shorten long line of GroupsHelper
git-svn-id: http://svn.redmine.org/redmine/trunk@20138 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -36,9 +36,18 @@ module GroupsHelper
|
|||||||
content_tag('div', principals_check_box_tags('user_ids[]', principals), :id => 'principals'),
|
content_tag('div', principals_check_box_tags('user_ids[]', principals), :id => 'principals'),
|
||||||
:class => 'objects-selection'
|
:class => 'objects-selection'
|
||||||
)
|
)
|
||||||
links = pagination_links_full(principal_pages, principal_count, :per_page_links => false) {|text, parameters, options|
|
links =
|
||||||
link_to text, autocomplete_for_user_group_path(group, parameters.merge(:q => params[:q], :format => 'js')), :remote => true
|
pagination_links_full(principal_pages, principal_count,
|
||||||
}
|
:per_page_links => false) do |text, parameters, options|
|
||||||
|
link_to(
|
||||||
|
text,
|
||||||
|
autocomplete_for_user_group_path(
|
||||||
|
group,
|
||||||
|
parameters.merge(:q => params[:q], :format => 'js')
|
||||||
|
),
|
||||||
|
:remote => true
|
||||||
|
)
|
||||||
|
end
|
||||||
s + content_tag('span', links, :class => 'pagination')
|
s + content_tag('span', links, :class => 'pagination')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user