From 55c0c08a65a973116aa0328b9af2fd719d2ee1dc Mon Sep 17 00:00:00 2001 From: moisseev Date: Thu, 23 Mar 2023 17:13:03 +0300 Subject: [WebUI] Migrate to Bootstrap v5.2 --- interface/js/app/stats.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'interface/js/app/stats.js') diff --git a/interface/js/app/stats.js b/interface/js/app/stats.js index 7ce239ef9..a00b99b62 100644 --- a/interface/js/app/stats.js +++ b/interface/js/app/stats.js @@ -71,21 +71,21 @@ define(["jquery", "d3pie"], function widget(k, v, cls) { var c = (typeof cls === "undefined") ? "" : cls; var titleAtt = d3.format(",")(v) + " " + k; - return '
' + + return '
' + '
' + + '">' + d3.format(".3~s")(v) + "" + k + "
"; } if (i === "auth" || i === "error") return; // Skip to the next iteration if (i === "uptime" || i === "version") { - var cls = "border-right "; + var cls = "border-end "; var val = item; if (i === "uptime") { cls = ""; val = msToTime(item); } - $('
' + + $('
' + val + "" + i + "
") .appendTo("#statWidgets"); } else if (i === "actions") { @@ -100,9 +100,9 @@ define(["jquery", "d3pie"], $(item).appendTo("#statWidgets"); }); $("#statWidgets > div:not(.stat-box)") - .wrapAll('
' + + .wrapAll('
' + '
'); - $("#statWidgets").find("div.float-right").appendTo("#statWidgets"); + $("#statWidgets").find("div.float-end").appendTo("#statWidgets"); $("#statWidgets").show(); $("#clusterTable tbody").empty(); @@ -157,7 +157,7 @@ define(["jquery", "d3pie"], "" + val.host + "" + '' + '" + scan_times.data + "" + - '' + server + "" : "") + '' + statfile.symbol + "" + '' + statfile.type + "" + - '' + statfile.revision + "" + - '' + statfile.users + ""); + '' + statfile.revision + "" + + '' + statfile.users + ""); }); } @@ -203,7 +203,7 @@ define(["jquery", "d3pie"], $("#fuzzyTable tbody").append("" + (i === 0 ? '' + server + "" : "") + "" + storage + "" + - '' + hashes + ""); + '' + hashes + ""); i++; }); } -- cgit v1.2.3