tap/app/views/application/_flash.html.haml

27 lines
1,011 B
Text
Raw Normal View History

2015-09-17 14:05:33 +02:00
#flash
- if flash[:error]
.alert.alert-danger.alert-dismissable
2015-09-19 11:05:43 +02:00
%button.close{"aria-hidden" => "true", "data-dismiss" => "alert", type: "button"} ×
2015-09-17 14:05:33 +02:00
%strong Error!
= flash[:error]
- if flash[:success]
.alert.alert-success.alert-dismissable
2015-09-19 11:05:43 +02:00
%button.close{"aria-hidden" => "true", "data-dismiss" => "alert", type: "button"} ×
2015-09-17 14:05:33 +02:00
%strong Success!
= raw flash[:success]
- if flash[:notice]
.alert.alert-info.alert-dismissable
2015-09-19 11:05:43 +02:00
%button.close{"aria-hidden" => "true", "data-dismiss" => "alert", type: "button"} ×
2015-09-17 14:05:33 +02:00
%strong Notice!
= flash[:notice]
- if flash[:warning]
.alert.alert-warning.alert-dismissable
2015-09-19 11:05:43 +02:00
%button.close{"aria-hidden" => "true", "data-dismiss" => "alert", type: "button"} ×
2015-09-17 14:05:33 +02:00
%strong Warning!
= flash[:warning]
- if flash[:alert]
.alert.alert-danger.alert-dismissable
2015-09-19 11:05:43 +02:00
%button.close{"aria-hidden" => "true", "data-dismiss" => "alert", type: "button"} ×
2015-09-17 14:05:33 +02:00
%strong Error!
= flash[:alert]