change text color of neutral rspamd symbol scores

master
friedPotat0 2019-10-12 13:26:40 +02:00
parent 5e6a70c438
commit 31ceb54732
1 changed files with 4 additions and 1 deletions

View File

@ -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>)'
}