-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define the flash_messages block in the containing templates
- Loading branch information
1 parent
a92239a
commit 9fb4c04
Showing
3 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
{% block flash_messages %} | ||
{% if app.session.started %} | ||
<div id="flash-messages"> | ||
{% for label, messages in app.session.flashbag.all %} | ||
{% for message in messages %} | ||
<div class="alert alert-{{ label }}"> | ||
{{ message }} | ||
</div> | ||
{% endfor %} | ||
{% if app.session.started %} | ||
<div id="flash-messages"> | ||
{% for label, messages in app.session.flashbag.all %} | ||
{% for message in messages %} | ||
<div class="alert alert-{{ label }}"> | ||
{{ message }} | ||
</div> | ||
{% endfor %} | ||
</div> | ||
{% endif %} | ||
{% endblock %} | ||
{% endfor %} | ||
</div> | ||
{% endif %} |
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
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