Created
May 20, 2013 11:33
-
-
Save davout/5611735 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.row.alerts | |
.span12 | |
- unless flash.blank? | |
- [:notice, :alert, :warning, :error].select{ |type| not flash[type].blank? }.each do |type| | |
.flash | |
%div{:class => "alert alert-#{type}"} | |
%a.close{ 'data-dismiss' => 'alert' }= '×'.html_safe | |
!= flash[type] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment