]> source.dussan.org Git - redmine.git/commitdiff
Highlight current per-page selection (#21258).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 5 Dec 2015 11:32:53 +0000 (11:32 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 5 Dec 2015 11:32:53 +0000 (11:32 +0000)
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@14949 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/pagination.rb
public/stylesheets/application.css

index f8d0ccd07a4fc6766871291df8aaf484fefe447e..58ec516f22368e07f2435637d3a49480508c8b04 100644 (file)
@@ -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
index 55981e908ebd6db9042f6fbfba23dda3126b87d7..28859202747c270112927ad87c101b88a1ef33a9 100644 (file)
@@ -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;