From 9de2bdef09aa9cfa1bcbbef07c208e96c737765e Mon Sep 17 00:00:00 2001 From: moisseev Date: Fri, 7 Aug 2020 20:41:03 +0300 Subject: [PATCH] [WebUI] Remove actions capitalization --- interface/index.html | 2 +- interface/js/app/stats.js | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/interface/index.html b/interface/index.html index 742db46df..a57033376 100644 --- a/interface/index.html +++ b/interface/index.html @@ -96,7 +96,7 @@
-
diff --git a/interface/js/app/stats.js b/interface/js/app/stats.js index 539116983..e2724af47 100644 --- a/interface/js/app/stats.js +++ b/interface/js/app/stats.js @@ -70,10 +70,11 @@ define(["jquery", "d3pie"], $.each(data, function (i, item) { var widgetsOrder = ["scanned", "no action", "greylist", "add header", "rewrite subject", "reject", "learned"]; - function widget(k, v) { + function widget(k, v, cls) { + var c = (typeof cls === "undefined") ? "" : cls; var titleAtt = d3.format(",")(v) + " " + k; return '
' + - '
' + d3.format(".3~s")(v) + "" + k + "
"; } @@ -94,14 +95,15 @@ define(["jquery", "d3pie"], stat_w[widgetsOrder.indexOf(action)] = widget(action, count); }); } else { - stat_w[widgetsOrder.indexOf(i)] = widget(i, item); + stat_w[widgetsOrder.indexOf(i)] = widget(i, item, " text-capitalize"); } }); $.each(stat_w, function (i, item) { $(item).appendTo(widgets); }); $("#statWidgets > div:not(.stat-box)") - .wrapAll("
"); + .wrapAll('
' + + '
'); $("#statWidgets").find("div.float-right").appendTo("#statWidgets"); $("#clusterTable tbody").empty(); -- 2.39.5