diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2018-08-01 13:38:35 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2018-08-01 13:38:35 +0200 |
commit | 3ef15d64c60d943b64d998449ed0eaa1dee0ac3e (patch) | |
tree | a5446f8020e10fc1b0b9662dec04303dd2cdf74d /templates/layout.html | |
parent | d285d0525f86160a61067942346fb40f2bc5c797 (diff) | |
download | rocket-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/layout.html')
-rw-r--r-- | templates/layout.html | 2 |
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> |