a11yist/app/views/reports/show.html.slim

48 lines
1.9 KiB
Text
Raw Normal View History

2024-11-03 21:58:25 +01:00
div
small.float-end
| Erstellt am
= l(@report.created_at, format: :short)
| , zuletzt bearbeitet am
= l(@report.updated_at, format: :short)
2024-11-01 03:59:49 +01:00
h1
i.bi.bi-journal-text.me-2
= @report.name
2024-10-31 23:13:18 +01:00
- if @report.comment
2024-11-01 03:59:49 +01:00
.smb-4.lead.mb-3
2024-10-31 23:13:18 +01:00
= @report.comment
2024-11-03 21:58:25 +01:00
.row
2024-11-06 22:12:37 +01:00
.col-lg-4.col-md-6.col-sm-12
2024-11-03 21:58:25 +01:00
.page_nav.sticky-top
= render partial: "reports/page_nav", locals: { report: @report, current_page: @current_page }
2024-11-01 03:31:57 +01:00
- if @current_page
= turbo_frame_tag(dom_id(@current_page, :notes)) do
= render partial: "pages/notes", locals: { page: @current_page }
2024-11-06 22:12:37 +01:00
.col-lg-8.col-md-6.col-sm-12
2024-11-03 21:58:25 +01:00
- if @current_page
= render @current_page
- else
'Gehen Sie weiter, hier gibt es nichts zu sehen.
2024-10-31 23:13:18 +01:00
.action-row
= link_to report_path(@report, format: :pdf), class: "btn btn-secondary", target: "_blank" do
i.bi.bi-filetype-pdf
| PDF
= link_to report_path(@report, format: :docx), class: "btn btn-secondary", target: "_blank" do
i.bi.bi-filetype-docx
| DOCX
= link_to report_path(@report, format: :xlsx), class: "btn btn-secondary", target: "_blank" do
i.bi.bi-filetype-xlsx
| XLSX
= link_to report_path(@report, format: :rtf), class: "btn btn-secondary", target: "_blank" do
i.bi.bi-file-richtext
| RTF
= link_to report_path(@report, format: :xml), class: "btn btn-secondary", target: "_blank" do
i.bi.bi-filetype-html
| HTML
= link_to report_path(@report, format: :odt), class: "btn btn-secondary", target: "_blank" do
i.bi.bi-file-richtext
| ODT
.action-row
= link_to t("scaffold.link_edit", model: @report.model_name.human), edit_report_path(@report)
= link_to t("scaffold.link_index", model: @report.model_name.human(count: 2)), reports_path
= button_to t("scaffold.link_destroy", model: @report.model_name.human), @report, method: :delete, class: "btn btn-outline-danger"