Skip to content

Commit

Permalink
[#1743] Fetch list of flash messages from the loop itself to avoid is…
Browse files Browse the repository at this point in the history
…sues with variables and block scopes.
  • Loading branch information
aliceh75 committed Jun 5, 2014
1 parent e82d96c commit f3558a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ckan/templates/page.html
Expand Up @@ -21,10 +21,9 @@
<div id="content" class="container">
{% block main_content %}
{% block flash %}
{% set flash_messages = h.flash.pop_messages() | list %}
<div class="flash-messages">
{% block flash_inner %}
{% for message in flash_messages %}
{% for message in h.flash.pop_messages() | list %}
<div class="alert fade in {{ message.category }}">
{{ h.literal(message) }}
</div>
Expand Down

0 comments on commit f3558a8

Please sign in to comment.