summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-12-05 11:32:53 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-12-05 11:32:53 +0000
commit6a824ee2ec63a68a0c723dac0e1b6d8b30714075 (patch)
treed782700817f8d233081f7e5ff6c8fa6fe5142eb4
parent5f35caa6bfb8115ce388ad112321aa6a1945f7f6 (diff)
downloadredmine-6a824ee2ec63a68a0c723dac0e1b6d8b30714075.tar.gz
redmine-6a824ee2ec63a68a0c723dac0e1b6d8b30714075.zip
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
-rw-r--r--lib/redmine/pagination.rb2
-rw-r--r--public/stylesheets/application.css3
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/redmine/pagination.rb b/lib/redmine/pagination.rb
index f8d0ccd07..58ec516f2 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 55981e908..288592027 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;