add admin flash messaging and styles

This commit is contained in:
Mark Moser
2016-08-24 12:15:12 -05:00
parent 35f33e8215
commit 0058168c3e
8 changed files with 36 additions and 7 deletions

View File

@ -0,0 +1,15 @@
<% if flash[:error].present? %>
<div class="error"><%= flash[:error] %></div>
<% end %>
<% if flash[:success].present? %>
<div class="success"><%= flash[:success] %></div>
<% end %>
<% if flash[:warning].present? %>
<div class="warning"><%= flash[:warning] %></div>
<% end %>
<% if flash[:notice].present? %>
<div class="notice"><%= flash[:notice] %></div>
<% end %>