From faa793174f3ba96dd940fbe496e992efb3c13593 Mon Sep 17 00:00:00 2001 From: Tristan Maat Date: Sun, 15 Apr 2018 23:12:06 +0000 Subject: [PATCH] Add message flashing --- src/lib/pug/base.pug | 1 + src/lib/pug/message-flash.html | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 src/lib/pug/message-flash.html diff --git a/src/lib/pug/base.pug b/src/lib/pug/base.pug index 0c007f2..195aa93 100644 --- a/src/lib/pug/base.pug +++ b/src/lib/pug/base.pug @@ -11,6 +11,7 @@ html(lang="en") include ./navigation .container.floating-container + include ./message-flash.html block content block footer diff --git a/src/lib/pug/message-flash.html b/src/lib/pug/message-flash.html new file mode 100644 index 0000000..ef7df36 --- /dev/null +++ b/src/lib/pug/message-flash.html @@ -0,0 +1,12 @@ +{% with messages = get_flashed_messages(with_categories=true) %} + {% if messages %} + {% for category, message in messages %} + + {% endfor %} + {% endif %} +{% endwith %}