Delete stuff in report view
This commit is contained in:
parent
644969c613
commit
50e853098b
16 changed files with 64 additions and 31 deletions
|
|
@ -1,11 +1,12 @@
|
|||
/ div id=dom_id(report, :page_nav)
|
||||
= turbo_frame_tag(dom_id(report, :page_nav)) do
|
||||
ul.nav.nav-underline
|
||||
li.nav-item
|
||||
= 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", 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 current_page
|
||||
ul.nav.nav-underline
|
||||
li.nav-item
|
||||
= link_to("Baum", report_path(report, page_id: current_page.id, pnm: :n), class: "nav-link #{@page_nav_mode != :comment ? "active" : nil}", data: { hotkey: "b", controller: :hotkey })
|
||||
li.nav-item
|
||||
= 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 != :comment || current_page.nil?
|
||||
- if report.pages.any?
|
||||
nav.mt-3 id=dom_id(report, :page_nav_spy)
|
||||
ul
|
||||
|
|
@ -35,5 +36,6 @@
|
|||
= turbo_frame_tag "new_page_frame" do
|
||||
= render partial: "reports/new_page_button", locals: { report: report }
|
||||
- else
|
||||
= turbo_frame_tag(dom_id(current_page, :notes)) do
|
||||
= render partial: "pages/notes", locals: { page: current_page }
|
||||
- if current_page
|
||||
= turbo_frame_tag(dom_id(current_page, :notes)) do
|
||||
= render partial: "pages/notes", locals: { page: current_page }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue