Skip to content

Instantly share code, notes, and snippets.

@dphaener
Created March 13, 2015 02:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dphaener/d8bac1ac106cec1ffb2b to your computer and use it in GitHub Desktop.
Save dphaener/d8bac1ac106cec1ffb2b to your computer and use it in GitHub Desktop.
Flash HTML for Basewise
<% if flash[:success] %>
<div class="flash-success">
<span><%= flash[:success] %></span>
</div>
<% end %>
<% if flash[:error] %>
<div class="flash-error">
<span><%= flash[:error] %></span>
</div>
<% end %>
<% if flash[:notice] %>
<div class="flash-notice">
<span><%= flash[:notice] %></span>
</div>
<% end %>
<% if flash[:alert] %>
<div class="flash-alert">
<span><%= flash[:alert] %></span>
</div>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment