diff options
author | EyePulp <eyepulp@eyepulp.net> | 2018-03-26 07:49:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-26 07:49:16 -0500 |
commit | ef6236d3b7557672581f626fce6e0f42db2bce6b (patch) | |
tree | e21f35e9662c7971c2b2457c6b4c3400e8953166 /interface/js/app/stats.js | |
parent | b0061a0452e691c43fba6abbc4f5ea1bac21d1ea (diff) | |
download | rspamd-ef6236d3b7557672581f626fce6e0f42db2bce6b.tar.gz rspamd-ef6236d3b7557672581f626fce6e0f42db2bce6b.zip |
Provide more specific numbers on stats
Use a `title` attribute on the stats widgets to show full specific values in addition to the `Humanize.compactInteger()` values.
Diffstat (limited to 'interface/js/app/stats.js')
-rw-r--r-- | interface/js/app/stats.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/interface/js/app/stats.js b/interface/js/app/stats.js index 377c2272c..3855f4d64 100644 --- a/interface/js/app/stats.js +++ b/interface/js/app/stats.js @@ -74,7 +74,8 @@ function($, d3pie, Humanize) { '</strong>' + i + '</div>'; $(widget).appendTo(widgets); } else { - widget = '<li class="stat-box"><div class="widget"><strong>' + + var titleAtt = Humanize.intComma(item) + ' ' + i; + widget = '<li class="stat-box"><div class="widget" title="' + titleAtt + '"><strong>' + Humanize.compactInteger(item) + '</strong>' + i + '</div></li>'; if (i == 'scanned') { stat_w[0] = widget; |