]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Add "rewrite subject" to Status tab widgets
authormoisseev <moiseev@mezonplus.ru>
Fri, 7 Aug 2020 17:17:01 +0000 (20:17 +0300)
committermoisseev <moiseev@mezonplus.ru>
Fri, 7 Aug 2020 17:17:01 +0000 (20:17 +0300)
interface/js/app/stats.js

index 18c3a2c084c1ffd09d8488e9fb85aaa39539239f..539116983d6924073405b0c25a072d5c0f23191b 100644 (file)
@@ -68,7 +68,7 @@ define(["jquery", "d3pie"],
             var stat_w = [];
 
             $.each(data, function (i, item) {
-                var widgetsOrder = ["scanned", "no action", "greylist", "add header", "reject", "learned"];
+                var widgetsOrder = ["scanned", "no action", "greylist", "add header", "rewrite subject", "reject", "learned"];
 
                 function widget(k, v) {
                     var titleAtt = d3.format(",")(v) + " " + k;
@@ -159,6 +159,11 @@ define(["jquery", "d3pie"],
                 label: "add header",
                 data: data["add header"],
                 value: data["add header"]
+            }, {
+                color: "#FF6600",
+                label: "rewrite subject",
+                data: data["rewrite subject"],
+                value: data["rewrite subject"]
             }, {
                 color: "#436EEE",
                 label: "greylist",
@@ -186,6 +191,7 @@ define(["jquery", "d3pie"],
                             actions: {
                                 "no action": 0,
                                 "add header": 0,
+                                "rewrite subject": 0,
                                 "greylist": 0,
                                 "reject": 0,
                                 "soft reject": 0,