Flash messages fixed for Foundation 6

This commit is contained in:
Christoph Haas 2016-03-03 17:12:45 +01:00
parent 28e4f8e705
commit 030d80fa30

View file

@ -1,7 +1,15 @@
// Display alert messages to the user
// Supported names are success/warning/info/alert/secondary
// See http://foundation.zurb.com/docs/components/alert_boxes.html
- flash.each do |name, msg|
div data-alert=true class="alert-box #{name}"
= content_tag(:div, msg)
a href="#" class="close" ×
// Supported names are: .secondary, .primary, .success, .warning, or .alert
- if flash
.row
.small-6.small-centered.columns
- flash.each do |name, msg|
- case name
- when 'notice'
- colorclass='success'
- else
- colorclass='primary'
div class="#{colorclass} callout" data-closable=true
= msg
button class='close-button' aria-label='Dismiss' type='button' data-close=true
span aria-hidden=true ×