diff options
Diffstat (limited to 'lib/redmine/pagination.rb')
-rw-r--r-- | lib/redmine/pagination.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/redmine/pagination.rb b/lib/redmine/pagination.rb index 34148d5dc..c07af54d6 100644 --- a/lib/redmine/pagination.rb +++ b/lib/redmine/pagination.rb @@ -185,7 +185,7 @@ module Redmine previous = nil paginator.linked_pages.each do |page| if previous && previous != page - 1 - html << content_tag('li', content_tag('span', '...'), :class => 'spacer') + html << content_tag('li', content_tag('span', '…'.html_safe), :class => 'spacer') end if page == paginator.page html << content_tag('li', content_tag('span', page.to_s), :class => 'current') @@ -207,11 +207,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 |