From 31ceb54732672d8261a20efed016a6d92e3b5947 Mon Sep 17 00:00:00 2001
From: friedPotat0 <5374007+friedPotat0@users.noreply.github.com>
Date: Sat, 12 Oct 2019 13:26:40 +0200
Subject: [PATCH] change text color of neutral rspamd symbol scores
---
data/web/js/site/debug.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/data/web/js/site/debug.js b/data/web/js/site/debug.js
index c7e54433..2bbe8950 100644
--- a/data/web/js/site/debug.js
+++ b/data/web/js/site/debug.js
@@ -470,9 +470,12 @@ jQuery(function($){
}
Object.keys(item.symbols).map(function(key) {
var sym = item.symbols[key];
- if (sym.score <= 0) {
+ if (sym.score < 0) {
sym.score_formatted = '(' + sym.score + ')'
}
+ else if (sym.score === 0) {
+ sym.score_formatted = '(' + sym.score + ')'
+ }
else {
sym.score_formatted = '(' + sym.score + ')'
}