-
- <% if flash[:notice].respond_to?(:join) %>
-
<%= flash[:notice].join('
').html_safe %>
- <% else %>
-
<%= flash[:notice] %>
- <% end %>
+<% display = (flash[:notice] || flash[:alert] || flash[:warning]) ? 'block' : 'none' %>
+
+ <% type = (flash[:notice]) ? 'bg-success' : 'bg-danger' %>
+ <% type = 'bg-warning' if flash[:warning] %>
+
+ <%= flash[:notice] || flash[:alert] || flash[:warning] %>
-<% end %>
-
-<% if flash[:alert] %>
-
-
-
<%= flash[:alert] %>
-
-<% end %>
-
-<% if flash[:info] %>
-
-
-
<%= flash[:info] %>
-
-<% end %>
+
diff --git a/app/views/layouts/registrant/application.html.erb b/app/views/layouts/registrant/application.html.erb
index 075ac4652..b5ddb5f0f 100644
--- a/app/views/layouts/registrant/application.html.erb
+++ b/app/views/layouts/registrant/application.html.erb
@@ -65,7 +65,7 @@
- <%= render 'shared/flash' %>
+ <%= render 'flash_messages' %>
<%= yield %>