diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-24 12:24:00 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-24 12:24:00 +0000 |
commit | bfd811304601edbc3c17edc1259a1029c230726d (patch) | |
tree | 9d8923db0f497f5e7d97e70407d2d3381c10f21e /lib/redmine/pagination.rb | |
parent | e723081ff4df9fa4002729add73316f74c4085b9 (diff) | |
download | redmine-bfd811304601edbc3c17edc1259a1029c230726d.tar.gz redmine-bfd811304601edbc3c17edc1259a1029c230726d.zip |
Adds p/n access keys for previous/next links (#18692).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@13794 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/pagination.rb')
-rw-r--r-- | lib/redmine/pagination.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/redmine/pagination.rb b/lib/redmine/pagination.rb index 018eed113..08ec22753 100644 --- a/lib/redmine/pagination.rb +++ b/lib/redmine/pagination.rb @@ -176,7 +176,8 @@ module Redmine if paginator.previous_page # \xc2\xab(utf-8) = « text = "\xc2\xab " + l(:label_previous) - html << yield(text, {page_param => paginator.previous_page}, :class => 'previous') + ' ' + html << yield(text, {page_param => paginator.previous_page}, + :class => 'previous', :accesskey => accesskey(:previous)) + ' ' end previous = nil @@ -196,7 +197,8 @@ module Redmine if paginator.next_page # \xc2\xbb(utf-8) = » text = l(:label_next) + " \xc2\xbb" - html << yield(text, {page_param => paginator.next_page}, :class => 'next') + ' ' + html << yield(text, {page_param => paginator.next_page}, + :class => 'next', :accesskey => accesskey(:next)) + ' ' end html << content_tag('span', "(#{paginator.first_item}-#{paginator.last_item}/#{paginator.item_count})", :class => 'items') + ' ' |