diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 69e0cd5..3c87ca1 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -42,21 +42,19 @@ 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 - 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") - 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"}", - data: { turbo_confirm: item[:confirm] }) - end + 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: "#{c}") + else + button_to(text, + item[:href], + method: item[:method], + class: "#{c}", + data: { turbo_confirm: item[:confirm] }) end end) end diff --git a/app/views/exports/show.html.slim b/app/views/exports/show.html.slim index e925508..541600e 100644 --- a/app/views/exports/show.html.slim +++ b/app/views/exports/show.html.slim @@ -58,8 +58,9 @@ 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}" - strong Protokoll-Nummer - =< sc.number + p + strong Protokoll-Nummer + =< sc.number - if sc.test_comment? p = sc.test_comment - safe_display(sc.quick_criterion) do