Skip to content

Instantly share code, notes, and snippets.

@bulv1ne
Created September 25, 2013 21:12
Show Gist options
  • Save bulv1ne/6706120 to your computer and use it in GitHub Desktop.
Save bulv1ne/6706120 to your computer and use it in GitHub Desktop.
{% with messages = get_flashed_messages(category_filter=["error"]) %}
{% if messages %}
<div class="panel panel-danger">
<div class="panel-heading">
Error
</div>
<div class="panel-body">
<ul class=flashes>
{% for message in messages %}
<li>{{ message }}</li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
{% endwith %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment