app/views/layouts/_flash_msg.html.haml
- flash_div_id ||= 'flash_msg_div'
- flash_style ||= @flash_array ? "" : "display: none"
%div{:id => flash_div_id, :style => flash_style}
- if @flash_array
.flash_text_div
- @flash_array.each do |fl|
- case fl[:level]
- when :error
.alert.alert-danger.alert-dismissable
%button.close{:data => {:dismiss => "alert"}}
%span.pficon.pficon-close
%span.pficon.pficon-error-circle-o
%strong= h(fl[:message])
- when :warning
.alert.alert-warning.alert-dismissable
%button.close{:data => {:dismiss => "alert"}}
%span.pficon.pficon-close
%span.pficon-warning-triangle-o
%strong= h(fl[:message])
- when :info
= render :partial => "layouts/info_msg",
:locals => {:message => h(fl[:message])}
- else
.alert.alert-success.alert-dismissable
%button.close{:data => {:dismiss => "alert"}}
%span.pficon.pficon-close
%span.pficon.pficon-ok
%strong= h(fl[:message])