<% flash.each do |type, message| %> <% bg_color = type == "notice" ? "bg-green-50 border-green-200 text-green-800" : "bg-red-50 border-red-200 text-red-800" icon_color = type == "notice" ? "text-green-500" : "text-red-500" # Die Farbe des Balkens passend zum Typ festlegen bar_color = type == "notice" ? "bg-green-500" : "bg-red-500" %>
<%= message %>
<% end %>