Project

General

Profile

Patch #18692 » prev_next_access_key.diff

Go MAEDA, 2014-12-21 01:03

View differences:

app/views/issues/show.html.erb (working copy)
8 8
      <%= link_to_if @prev_issue_id,
9 9
                     "\xc2\xab #{l(:label_previous)}",
10 10
                     (@prev_issue_id ? issue_path(@prev_issue_id) : nil),
11
                     :title => "##{@prev_issue_id}" %> |
11
                     :title => "##{@prev_issue_id}",
12
                     :accesskey => accesskey(:prev_issue) %> |
12 13
      <% if @issue_position && @issue_count %>
13 14
        <span class="position"><%= l(:label_item_position, :position => @issue_position, :count => @issue_count) %></span> |
14 15
      <% end %>
15 16
      <%= link_to_if @next_issue_id,
16 17
                     "#{l(:label_next)} \xc2\xbb",
17 18
                     (@next_issue_id ? issue_path(@next_issue_id) : nil),
18
                     :title => "##{@next_issue_id}" %>
19
                     :title => "##{@next_issue_id}",
20
                     :accesskey => accesskey(:next_issue) %>
19 21
    </div>
20 22
  <% end %>
21 23

  
lib/redmine/access_keys.rb (working copy)
21 21
                  :preview => 'r',
22 22
                  :quick_search => 'f',
23 23
                  :search => '4',
24
                  :new_issue => '7'
24
                  :new_issue => '7',
25
                  :prev_issue => 'p',
26
                  :next_issue => 'n'
25 27
                 }.freeze unless const_defined?(:ACCESSKEYS)
26 28

  
27 29
    def self.key_for(action)
(1-1/2)