Add hot keys feature
This commit is contained in:
parent
435e94c186
commit
016985d2cb
9 changed files with 41 additions and 6 deletions
|
|
@ -1,10 +1,10 @@
|
|||
/ div id=dom_id(report, :page_nav)
|
||||
= turbo_frame_tag(dom_id(report, :page_nav))
|
||||
ul.nav.nav-underline
|
||||
= turbo_frame_tag(dom_id(report, :page_nav)) do
|
||||
ul.nav.nav-underline
|
||||
li.nav-item
|
||||
= link_to("Baum", url_for(pnm: :n), class: "nav-link #{@page_nav_mode == :nav_tree ? "active david" : nil}")
|
||||
= link_to("Baum", report_path(report, page_id: @current_page.id, pnm: :n), class: "nav-link #{@page_nav_mode == :nav_tree ? "active" : nil}", data: { hotkey: "b", controller: :hotkey })
|
||||
li.nav-item
|
||||
= link_to("Notizen", url_for(pnm: :c), class: "nav-link #{@page_nav_mode == :comment ? "active" : nil}")
|
||||
= link_to("Notizen", report_path(report, page_id: @current_page.id, pnm: :c), class: "nav-link #{@page_nav_mode == :comment ? "active" : nil}", data: { hotkey: "n", controller: :hotkey })
|
||||
- if @page_nav_mode == :nav_tree
|
||||
- if report.pages.any?
|
||||
nav.mt-3 id=dom_id(report, :page_nav_spy)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue