Browse Source

change text color of neutral rspamd symbol scores

friedPotat0 5 years ago
parent
commit
31ceb54732
1 changed files with 4 additions and 1 deletions
  1. 4 1
      data/web/js/site/debug.js

+ 4 - 1
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 = '(<span class="text-success"><b>' + sym.score + '</b></span>)'
         }
+        else if (sym.score === 0) {
+          sym.score_formatted = '(<span><b>' + sym.score + '</b></span>)'
+        }
         else {
           sym.score_formatted = '(<span class="text-danger"><b>' + sym.score + '</b></span>)'
         }