Skip to content

Instantly share code, notes, and snippets.

@lholden
Last active March 16, 2017 05:42
Show Gist options
  • Save lholden/a007c14a4e8ac156228c4172f3d632a5 to your computer and use it in GitHub Desktop.
Save lholden/a007c14a4e8ac156228c4172f3d632a5 to your computer and use it in GitHub Desktop.
{% 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">&times;</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