diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-12-05 10:55:55 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-12-05 10:55:55 +0000 |
commit | c4ff59337bb6c64594e75bc83f46356f6b408b4c (patch) | |
tree | f45b944d222d601069d6cd5449a9aabcda154111 /lib | |
parent | 9b52ae5c5a6492c6a1a3c7eaf5d62f5e8dccd7fa (diff) | |
download | redmine-c4ff59337bb6c64594e75bc83f46356f6b408b4c.tar.gz redmine-c4ff59337bb6c64594e75bc83f46356f6b408b4c.zip |
Adapt pagination for smaller screens (#19097).
git-svn-id: http://svn.redmine.org/redmine/trunk@14947 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/pagination.rb | 7 |
1 files changed, 4 insertions, 3 deletions
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 << '</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 |