Cosmetics
Some checks failed
/ Run tests (push) Failing after 1m33s
/ Run system tests (push) Failing after 1m41s
/ Build, push and deploy image (push) Has been skipped

This commit is contained in:
david 2024-11-09 02:26:38 +01:00
parent ab335decd3
commit cde992a194
12 changed files with 53 additions and 49 deletions

View file

@ -1 +1 @@
<%= link_to "#{tag.i(class: "bi bi-plus-lg")} Neues Element".html_safe, new_page_element_path(page_id: page.id), class: "btn btn-primary" %>
<%= link_to "#{tag.i(class: "bi bi-plus-lg")} Neues Element".html_safe, new_page_element_path(page_id: page.id), class: "btn btn-secondary" %>

View file

@ -1,8 +1,4 @@
<div id="<%= dom_id page %>" class="mb-3"data-bs-scrollspy-target="#<%= dom_id(page.report, :page_nav_spy) %>" data-controller="bs-scrollspy">
<h2>
<i class="bi bi-file-earmark-check"></i>
<%= page.position %> <%= page.path %></h2>
<p>url: <%= page.url %></p>
<div id="element_list">
<% page.elements.each do |element| %>
<%= render element %>

View file

@ -1,10 +1,15 @@
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 }
= render partial: "pages/notes", locals: { page: @page }
.action-row
= link_to t("scaffold.link_edit", model: @page.model_name.human), edit_page_path(@page)