Last active
March 16, 2017 05:42
-
-
Save lholden/a007c14a4e8ac156228c4172f3d632a5 to your computer and use it in GitHub Desktop.
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
{% if flash %} | |
<div class="alert alert-dismissible rounded-bottom fade show alert-{{flash.name | replace(from="error", to="danger")}}" role="alert"> | |
<button type="button" class="close" data-dismiss="alert" aria-label="Close"> | |
<span aria-hidden="true">×</span> | |
</button> | |
<strong class="pr-3"> | |
{% if flash.name == "error" %} | |
<span class="fa fa-times-circle fa-lg"></span> | |
{% elif flash.name == "warning" %} | |
<span class="fa fa-exclamation-circle fa-lg"></span> | |
{% elif flash.name == "success" %} | |
<span class="fa fa-check-circle fa-lg"></span> | |
{% endif %} | |
</strong>{{flash.message}} | |
</div> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment