summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-05-03 19:00:31 +0200
committerAurélien Bompard <aurelien@bompard.org>2013-05-03 19:29:19 +0200
commit3123d2ed9220ab1103a800041e4e46d0f6fbf6c8 (patch)
tree4cf919a247ca5b31b17b7dc9d9a44d92315f3f83 /hyperkitty/templates
parent366a134413586f3ddbf453ea1601eb1944d43d90 (diff)
downloadhyperkitty-3123d2ed9220ab1103a800041e4e46d0f6fbf6c8.tar.gz
hyperkitty-3123d2ed9220ab1103a800041e4e46d0f6fbf6c8.tar.xz
hyperkitty-3123d2ed9220ab1103a800041e4e46d0f6fbf6c8.zip
Standardize flash messages a bit
Diffstat (limited to 'hyperkitty/templates')
-rw-r--r--hyperkitty/templates/base.html11
1 files changed, 9 insertions, 2 deletions
diff --git a/hyperkitty/templates/base.html b/hyperkitty/templates/base.html
index 00385a4..ceab0bf 100644
--- a/hyperkitty/templates/base.html
+++ b/hyperkitty/templates/base.html
@@ -59,9 +59,16 @@
</header>
{% if flash_messages %}
- <div class="flashmsg">
+ <div class="flashmsgs">
{% for flash_msg in flash_messages %}
- <div class="alert alert-{{ flash_msg.type }}">{{ flash_msg.msg }}</div>
+ <div class="flashmsg-wrapper">
+ <div class="alert alert-{{ flash_msg.type }}">
+ {% if flash_msg.type != "success" %}
+ <button type="button" class="close" data-dismiss="alert">&times;</button>
+ {% endif %}
+ {{ flash_msg.msg }}
+ </div>
+ </div>
{% endfor %}
</div>
{% endif %}