Skip to content

Instantly share code, notes, and snippets.

@markgandolfo
Created May 13, 2010 00:19
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 markgandolfo/399312 to your computer and use it in GitHub Desktop.
Save markgandolfo/399312 to your computer and use it in GitHub Desktop.
- unless flash.empty?
- flash.each_pair do |key, message|
.flash{:class => "#{key}"}= message
.flash {padding:5px 5px 5px 25px;border:1px solid #ccc;margin:0 0 20px;}
.flash.notice {border-color:#0C2399;background: #77DAFF url('../images/icons/information.png') no-repeat 5px center;}
.flash.error {border-color:#D61821;background: #FFB3B6 url('../images/icons/exclamation.png') no-repeat 5px center;}
.flash.alert {border-color:#FFE33B;background: #FFFACD url('../images/icons/error.png') no-repeat 5px center;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment