more beautiful button and export
Some checks failed
/ Run tests (push) Successful in 1m41s
/ Build, push and deploy image (push) Has been cancelled
/ Run system tests (push) Has been cancelled

This commit is contained in:
david 2024-11-17 19:00:52 +01:00
parent e576aa1e39
commit bf03407bb9
2 changed files with 15 additions and 16 deletions

View file

@ -42,22 +42,20 @@ module ApplicationHelper
end
end +
tag.div(class: "details-dropdown-content bg-secondary") do
tag.ul(class: "list-group") do
tag.div(class: "list-group") do
safe_join(items.map do |item|
tag.li(class: "list-group-item list-group-item-action#{ item[:color] ? " list-group-item-#{item[:color]}" : ""}") do
c = "list-group-item list-group-item-action #{ item[:color] ? " list-group-item-#{item[:color]}" : "list-group-item-secondary"}"
text = item[:icon] ? tag.i(class: "bi bi-#{item[:icon]} me-2") + " #{item[:text]}".html_safe : item[:text]
case item[:method]
when nil, :get
link_to(text, item[:href], class: "text-decoration-none text-body")
link_to(text, item[:href], class: "#{c}")
else
button_to(text,
item[:href],
method: item[:method],
form_class: "no-padding",
class: "btn btn-link text-decoration-none text-#{item[:color] ? "#{item[:color]}-emphasis" : "body"}",
class: "#{c}",
data: { turbo_confirm: item[:confirm] })
end
end
end)
end
end

View file

@ -58,6 +58,7 @@ h2 2 Protokoll
/h4
= "2.#{current_abs_element_pos}.#{current_sc_pos} #{sc.title}"
h5 = "2.#{current_page_pos}.#{current_element_pos}.#{current_sc_pos}"
p
strong Protokoll-Nummer
=< sc.number
- if sc.test_comment?