aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-03-26 14:20:23 +0000
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-03-26 14:20:23 +0000
commit66f15e0808c5fb0a91ce47d5c3a2dca5a91f809d (patch)
tree13f381fcd922e766ec0604b3c7f42a8f7e7a3ea0 /app
parentAdd user css and done image (diff)
downloadAnnotateChange-66f15e0808c5fb0a91ce47d5c3a2dca5a91f809d.tar.gz
AnnotateChange-66f15e0808c5fb0a91ce47d5c3a2dca5a91f809d.zip
Fancy message flashing
Diffstat (limited to 'app')
-rw-r--r--app/static/base.css11
-rw-r--r--app/templates/base.html12
2 files changed, 3 insertions, 20 deletions
diff --git a/app/static/base.css b/app/static/base.css
deleted file mode 100644
index ab908c8..0000000
--- a/app/static/base.css
+++ /dev/null
@@ -1,11 +0,0 @@
-.flashes .info {
- color: blue;
-}
-
-.flashes .success {
- color: green;
-}
-
-.flashes .error {
- color: red;
-}
diff --git a/app/templates/base.html b/app/templates/base.html
index 9812c5f..f020d5f 100644
--- a/app/templates/base.html
+++ b/app/templates/base.html
@@ -1,4 +1,5 @@
{% extends 'bootstrap/base.html' %}
+{% import "bootstrap/utils.html" as util %}
{% block styles %}
{{ super() }}
@@ -43,15 +44,8 @@
{% block content %}
<div class="container">
- {% with messages = get_flashed_messages(with_categories=true) %}
- {% if messages %}
- <ul class="flashes">
- {% for category, message in messages %}
- <li class="{{ category }}">{{ message}}</li>
- {% endfor %}
- </ul>
- {% endif %}
- {% endwith %}
+
+ {{ util.flashed_messages(dismissible=True) }}
{% block app_content %}
{% endblock %}