Skip to content

Commit

Permalink
[webui] Bind keys to '<<', '>>' links on bs request show view
Browse files Browse the repository at this point in the history
Used keys are inspired by vim (and github):
  Previous request: 'h' or left-key
  Next request:     'l' or right-key
  • Loading branch information
bgeuken committed Dec 8, 2016
1 parent 9ece8ae commit 30c7aa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/app/views/webui/request/show.html.erb
Expand Up @@ -8,10 +8,10 @@

<div id="request_navigation_box" style="position: absolute; right: 0.3em;">
<% if @request_before -%>
<%= link_to '<<', request_show_path(@request_before) %>
<%= link_to '<<', request_show_path(@request_before), data: { keybinding: "h" } %>
<% end -%>
<% if @request_after -%>
<%= link_to '>>', request_show_path(@request_after) %>
<%= link_to '>>', request_show_path(@request_after), data: { keybinding: "l" } %>
<% end -%>
</div>

Expand Down

0 comments on commit 30c7aa0

Please sign in to comment.