[damned-lies] Give a more prominent color to top error messages
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Give a more prominent color to top error messages
- Date: Fri, 14 Sep 2018 18:04:04 +0000 (UTC)
commit c84e70e3243985a326a14bf3a0f747a642f6a6e4
Author: Claude Paroz <claude 2xlibre net>
Date: Fri Sep 14 15:08:41 2018 +0200
Give a more prominent color to top error messages
common/static/css/template.css | 3 +++
templates/base.html | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/common/static/css/template.css b/common/static/css/template.css
index 6ea8b76c..f5a5e306 100644
--- a/common/static/css/template.css
+++ b/common/static/css/template.css
@@ -666,6 +666,9 @@ img.action_icons {
border-radius: 5px;
box-shadow: inset 0 2px 3px -1px #396da9, 0 1px 0 #fff;
}
+.errornote.error {
+ background-color: red;
+}
ul.errorlist {
list-style: none;
diff --git a/templates/base.html b/templates/base.html
index 46eea295..7edb096b 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -83,7 +83,7 @@
<div id="content" class="container gnome-content">
{% if messages %}
{% for message in messages %}
- <p class="errornote">{{ message|safe }}</p>
+ <p class="errornote {{ message.tags }}">{{ message|safe }}</p>
{% endfor %}
{% endif %}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]