Created
September 22, 2022 14:40
-
-
Save justalever/2093c462826922a30adf6999a282efb0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<% flash.each do |type, message| %> | |
<% if type == "alert" %> | |
<div class="bg-red-500"> | |
<div class="container px-2 mx-auto py-4 text-white text-center font-medium font-sans"> | |
<%= message %> | |
</div> | |
</div> | |
<% end %> | |
<% if type == "notice" %> | |
<div class="bg-green-500"> | |
<div class="container px-2 mx-auto py-4 text-white text-center font-medium font-sans"> | |
<%= message %> | |
</div> | |
</div> | |
<% end %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment