Skip to content

Instantly share code, notes, and snippets.

@samullen
Created August 1, 2010 13:55
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 samullen/503384 to your computer and use it in GitHub Desktop.
Save samullen/503384 to your computer and use it in GitHub Desktop.
mp.html
<div id="message-popdown" class="grid_12">
<% if flash[:error_msg] %>
<span class="error-msg"><%= flash[:error_msg] %></span>
<% elsif flash[:success_msg] %>
<span class="success-msg"><%= flash[:success_msg] %></span>
<% elsif flash[:warning_msg] %>
<span class="warning-msg"><%= flash[:warning_msg] %></span>
<% elsif flash[:message] %>
<span class="notice-msg"><%= flash[:message] %></span>
<% end %>
<% flash[:error_msg] = flash[:success_msg] = nil %>
<% flash[:warning_msg] = flash[:message] = nil %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment