From c4ff59337bb6c64594e75bc83f46356f6b408b4c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 5 Dec 2015 10:55:55 +0000 Subject: Adapt pagination for smaller screens (#19097). git-svn-id: http://svn.redmine.org/redmine/trunk@14947 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/pagination.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/redmine/pagination.rb b/lib/redmine/pagination.rb index e6faa8a68..f1d05c761 100644 --- a/lib/redmine/pagination.rb +++ b/lib/redmine/pagination.rb @@ -220,11 +220,12 @@ module Redmine end html << '' - 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 -- cgit v1.2.3