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

68 lines
2.9 KiB
Text
Raw Permalink Normal View History

.border-bottom.mb-3
h1
i.bi.bi-journal-text.me-2
= @report.name
2024-11-03 21:58:25 +01:00
div
2024-11-24 22:08:36 +01:00
small = "Erstellt am #{l(@report.created_at, format: :short)}, zuletzt bearbeitet am #{l(@report.updated_at, format: :short)}"
p
i.bi.bi-folder
strong< = link_to(@report.project.name, @report.project)
.smb-4.lead.mb-5
= @report.comment || tag.i("leer")
2024-11-09 02:26:38 +01:00
- if @current_page
.current_page data-controller="details-list" data-target-id="element_list"
.border-bottom.mb-3.d-flex
h2
i.bi.bi-file-earmark-check
=< @current_page.position
=< @current_page.path
= page_menu(@current_page)
p
'URL:
= safe_display(@current_page.full_url) { link_to(_1, _1, target: :_blank) }
p.actions
.d-flex.justify-content-end
.btn-group.me-3.visually-hidden
= link_to("Alle zu [s]", "#", data: { action: "click->details-list#closeAll", controller: :hotkey, hotkey: "s" }, class: "btn btn-outline-secondary")
= link_to("Alle auf [a]", "#", data: { action: "click->details-list#openAll", controller: :hotkey, hotkey: "a" }, class: "btn btn-outline-secondary")
2024-11-09 02:26:38 +01:00
.row
2024-11-09 01:25:47 +01:00
.col-lg-3.col-md-4.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-09 00:43:04 +01:00
- if @current_page && false
2024-11-01 03:31:57 +01:00
= turbo_frame_tag(dom_id(@current_page, :notes)) do
= render partial: "pages/notes", locals: { page: @current_page }
2024-11-11 08:12:18 +01:00
.col-lg-9.col-md-8.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
2024-11-11 20:19:52 +01:00
= link_to(report_export_path(@report), class: "btn btn-secondary", target: :_blank) do
2024-10-31 23:13:18 +01:00
i.bi.bi-filetype-html
2024-11-11 20:19:52 +01:00
| Online HTML
2024-11-23 21:11:01 +01:00
= link_to report_path(@report, format: :pdf), class: "btn btn-secondary", target: "_blank" do
i.bi.bi-filetype-pdf
| PDF
2024-11-11 20:19:52 +01:00
/ = 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
2024-10-31 23:13:18 +01:00
i.bi.bi-file-richtext
| ODT
.action-row
= link_to t("scaffold.link_edit", model: @report.model_name.human), edit_report_path(@report)
2024-11-24 22:08:36 +01:00
= link_to t("scaffold.link_index", model: @report.model_name.human(count: 2)), project_reports_path(@report.project)
2024-11-17 00:45:41 +01:00
= button_to t("scaffold.link_destroy", model: @report.model_name.human), @report, method: :delete, class: "btn btn-outline-danger", data: { turbo_confirm: "Bist du sicher?"}