aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-08-01 13:38:35 +0200
committerHarald Eilertsen <haraldei@anduin.net>2018-08-01 13:38:35 +0200
commit3ef15d64c60d943b64d998449ed0eaa1dee0ac3e (patch)
treea5446f8020e10fc1b0b9662dec04303dd2cdf74d /templates
parentd285d0525f86160a61067942346fb40f2bc5c797 (diff)
downloadrocket-blog-3ef15d64c60d943b64d998449ed0eaa1dee0ac3e.tar.gz
rocket-blog-3ef15d64c60d943b64d998449ed0eaa1dee0ac3e.tar.bz2
rocket-blog-3ef15d64c60d943b64d998449ed0eaa1dee0ac3e.zip
Fix display of flash messages.
Pass full flash to template, and style according to flash name/type.
Diffstat (limited to 'templates')
-rw-r--r--templates/layout.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/layout.html b/templates/layout.html
index 4eeac80..887a2b7 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -8,7 +8,7 @@
<header class="page-header">
<h1>{{ title }}</h1>
</header>
- {{#flash}}<div class="flash">{{ . }}</div>{{/flash}}
+ {{# flash }}<div class="flash {{ .name() }}">{{ .msg() }}</div>{{/ flash }}
{{{ content }}}
</body>
</html>