a11yist/app/views/pages/show.html.slim
david 70500c49a1
Some checks failed
/ Run tests (push) Successful in 2m44s
/ Run system tests (push) Failing after 2m43s
/ Build, push and deploy image (push) Successful in 4m3s
Model menus, modal edit and layout improvements
2024-11-23 19:10:09 +01:00

18 lines
629 B
Text

h1
= t("scaffold.pagetitle_show", model: @page.class.model_name.human)
h2
i.bi.bi-file-earmark-check
= @page.position
= @page.path
= render @page
= turbo_frame_tag(dom_id(@page, :notes)) do
= render partial: "pages/notes", locals: { page: @page }
- unless modal?
.action-row
= link_to t("scaffold.link_edit", model: @page.model_name.human), edit_page_path(@page)
= link_to t("scaffold.link_index", model: @page.model_name.human(count: 2)), report_pages_path(@page.report)
= button_to t("scaffold.link_destroy", model: @page.model_name.human), @page, method: :delete, class: "btn btn-outline-danger"