Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

Fix dynamic classname generation (#287)

Rob Zolkos4699423eb478
diff --git a/app/views/shared/_auth_messages.html.erb b/app/views/shared/_auth_messages.html.erb
index 4ebc5e5a..0cf679b9 100644
--- a/app/views/shared/_auth_messages.html.erb
+++ b/app/views/shared/_auth_messages.html.erb
@@ -1,5 +1,5 @@
<% flash.each do |type, msg| %>
- <div class="p-4 bg-<%= type == 'notice' ? 'blue' : 'red' %>-200 rounded-lg"><%= msg %></div>
+ <div class="p-4 <%= type == 'notice' ? 'bg-blue-200' : 'bg-red-200' %> rounded-lg"><%= msg %></div>
<% end %>
<% errors.each do |message| %>