Skip to content

Commit

Permalink
Nette: added sexy n:foreach to @layout.latte
Browse files Browse the repository at this point in the history
  • Loading branch information
klimesf committed Nov 28, 2015
1 parent 278af55 commit 1edc4c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nette/notejam/app/presenters/templates/@layout.latte
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@

<div n:class="$user->isLoggedIn() ? thirteen : sixteen, columns, content-area">
<div class="alert-area">
{foreach $flashes as $flash}
<div n:if="$flash" class="alert alert-{$flash->type}">{$flash->message}</div>
{/foreach}
<div n:foreach="$flashes as $flash" class="alert alert-{$flash->type}">{$flash->message}</div>
</div>
{include content}
</div>
Expand Down

0 comments on commit 1edc4c3

Please sign in to comment.