Adapt pagination for smaller screens (#19097).

git-svn-id: http://svn.redmine.org/redmine/trunk@14947 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2015-12-05 10:55:55 +00:00
parent 9b52ae5c5a
commit c4ff59337b
3 changed files with 16 additions and 3 deletions

View File

@@ -220,11 +220,12 @@ module Redmine
end
html << '</ul>'
html << content_tag('span', "(#{paginator.first_item}-#{paginator.last_item}/#{paginator.item_count})", :class => 'items') + ' '
info = ''.html_safe
info << content_tag('span', "(#{paginator.first_item}-#{paginator.last_item}/#{paginator.item_count})", :class => 'items') + ' '
if per_page_links != false && links = per_page_links(paginator, &block)
html << content_tag('span', links.to_s, :class => 'per-page')
info << content_tag('span', links.to_s, :class => 'per-page')
end
html << content_tag('span', info)
html.html_safe
end