Use collection render on admin dashboard system checks (#35976)
This commit is contained in:
parent
876ccfe0a3
commit
24fb3e8465
@ -6,11 +6,7 @@
|
|||||||
|
|
||||||
- unless @system_checks.empty?
|
- unless @system_checks.empty?
|
||||||
.flash-message-stack
|
.flash-message-stack
|
||||||
- @system_checks.each do |message|
|
= render collection: @system_checks, partial: 'admin/system_check/messages/message'
|
||||||
.flash-message{ class: message.critical ? 'alert' : 'warning' }
|
|
||||||
= t("admin.system_checks.#{message.key}.message_html", value: message.value ? content_tag(:strong, message.value) : nil)
|
|
||||||
- if message.action
|
|
||||||
= link_to t("admin.system_checks.#{message.key}.action"), message.action
|
|
||||||
|
|
||||||
.dashboard
|
.dashboard
|
||||||
.dashboard__item
|
.dashboard__item
|
||||||
|
|||||||
4
app/views/admin/system_check/messages/_message.html.haml
Normal file
4
app/views/admin/system_check/messages/_message.html.haml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
.flash-message{ class: message.critical ? 'alert' : 'warning' }
|
||||||
|
= t("admin.system_checks.#{message.key}.message_html", value: message.value ? tag.strong(message.value) : nil)
|
||||||
|
- if message.action
|
||||||
|
= link_to t("admin.system_checks.#{message.key}.action"), message.action
|
||||||
Loading…
x
Reference in New Issue
Block a user