Created
April 24, 2016 19:42
-
-
Save pvgdevelop/aadc631f8f14aa19a60aee83e5e3301c to your computer and use it in GitHub Desktop.
Rail flash messages box styled for Zurb Foundation 6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-# Rails flash messages styled for Zurb Foundation 6 | |
- flash.each do |name, msg| | |
- if msg.is_a?(String) | |
%div{:class => "callout #{name.to_s == 'notice' ? 'success' : 'alert'}", "data-alert" => ""} | |
%button.close-button{"aria-label" => "Close alert", :type => "button"} | |
%span{"aria-hidden" => "true"} × | |
= content_tag :p, msg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment