From 6a824ee2ec63a68a0c723dac0e1b6d8b30714075 2015-12-05 11:32:53 From: Jean-Philippe Lang Date: 2015-12-05 11:32:53 Subject: [PATCH] Highlight current per-page selection (#21258). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@14949 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/redmine/pagination.rb b/lib/redmine/pagination.rb index f8d0ccd..58ec516 100644 --- a/lib/redmine/pagination.rb +++ b/lib/redmine/pagination.rb @@ -236,7 +236,7 @@ module Redmine if values.any? links = values.collect do |n| if n == paginator.per_page - content_tag('span', n.to_s) + content_tag('span', n.to_s, :class => 'selected') else yield(n, :per_page => n, paginator.page_param => nil) end diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 55981e9..2885920 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -316,6 +316,9 @@ span.search_for_watchers a, span.add_attachment a {padding-left:16px; background word-wrap: break-word; border-radius: 3px; } +.pagination .per-page span.selected { + font-weight: bold; +} div.square { border: 1px solid #999;