We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 761ceaa + b6fe364 commit f9edf76Copy full SHA for f9edf76
app/views/layouts/_messages.html.haml
@@ -3,11 +3,11 @@
3
- name = name.eql?('notice') ? 'info' : name
4
- if msg.is_a?(String)
5
.alert.alert-dismissible.fade.show.mb-0{ 'data-alert': '', class: "alert-#{name}", role: 'alert' }
6
- = content_tag :div, msg
+ %div= msg
7
%button.btn-close{ type: 'button', 'data-bs-dismiss': 'alert', 'aria-label': 'Close' }
8
- elsif msg.is_a?(Array)
9
- msg.each do |message|
10
11
- = content_tag :span, message
+ %span= message
12
13
0 commit comments