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
|
||||
// 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 ×
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue