Flash messages fixed for Foundation 6
This commit is contained in:
parent
28e4f8e705
commit
030d80fa30
1 changed files with 14 additions and 6 deletions
|
|
@ -1,7 +1,15 @@
|
||||||
// Display alert messages to the user
|
// Display alert messages to the user
|
||||||
// Supported names are success/warning/info/alert/secondary
|
// Supported names are: .secondary, .primary, .success, .warning, or .alert
|
||||||
// See http://foundation.zurb.com/docs/components/alert_boxes.html
|
- if flash
|
||||||
- flash.each do |name, msg|
|
.row
|
||||||
div data-alert=true class="alert-box #{name}"
|
.small-6.small-centered.columns
|
||||||
= content_tag(:div, msg)
|
- flash.each do |name, msg|
|
||||||
a href="#" class="close" ×
|
- 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 ×
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue