lib/generators/dry_crud/templates/app/views/layouts/crud.html.erb in dry_crud-1.2.0 vs lib/generators/dry_crud/templates/app/views/layouts/crud.html.erb in dry_crud-1.2.5
- old
+ new
@@ -11,10 +11,14 @@
</head>
<body>
<h1><%= @title %></h1>
-<p id="flash_notice"><%= flash[:notice] %></p>
+<% if flash[:notice].present? %>
+ <div id="flash_notice"><%= flash[:notice] %></div>
+<% elsif flash[:alert].present? %>
+ <div id="flash_alert"><%= flash[:alert] %></div>
+<% end %>
<%= yield %>
</body>
</html>