Partial to display flash messages added.
This commit is contained in:
parent
e8c4694ef0
commit
149b2c63f7
1 changed files with 7 additions and 0 deletions
7
app/views/layouts/_messages.slim
Normal file
7
app/views/layouts/_messages.slim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
// 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 round #{name}"
|
||||
= content_tag(:div, msg)
|
||||
a href="#" class="close" ×
|
||||
Loading…
Add table
Add a link
Reference in a new issue