From: Vsevolod Stakhov Date: Mon, 20 Mar 2017 11:39:31 +0000 (+0000) Subject: [WebUI] Humanize sizes X-Git-Tag: 1.5.4~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=deb2a10153127d91f2b846362d865b5a09b5af46;p=thirdparty%2Frspamd.git [WebUI] Humanize sizes --- diff --git a/interface/js/app/history.js b/interface/js/app/history.js index 11edc21b3d..9581662573 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -22,8 +22,8 @@ THE SOFTWARE. */ -define(['jquery', 'footable'], -function($) { +define(['jquery', 'footable', 'humanize'], +function($, _, Humanize) { var interface = {}; function unix_time_format(tm) { @@ -51,6 +51,8 @@ function($) { if (item.user == null) { item.user = "none"; } + + item.size = Humanize.compactInteger(item.size); } function process_history_v2(data) {