]>
git.proxmox.com Git - pmg-gui.git/blob - js/SpamScoreDistribution.js
6bd117026255f012ffefb869b5a8df786ca1ef40
1 Ext
.define('PMG.SpamScoreDistribution', {
2 extend
: 'Ext.grid.GridPanel',
3 xtype
: 'pmgSpamScoreDistribution',
5 disableSelection
: true,
8 title
: gettext('Statistics') + ': ' + gettext('Spam Scores'),
10 tbar
: [ { xtype
: 'pmgStatTimeSelector' } ],
13 xclass
: 'PMG.data.StatStore',
14 staturl
: "/api2/json/statistics/spamscores",
20 convert: function(v
, rec
) {
21 if (rec
.data
.level
>= 10) {
22 return PMG
.Utils
.scoreText
+ ' >= 10';
24 return PMG
.Utils
.scoreText
+ ' ' + rec
.data
.level
;
33 header
: PMG
.Utils
.scoreText
,
38 header
: gettext("Count"),
43 header
: gettext("Percentage"),
46 xtype
: 'widgetcolumn',
49 xtype
: 'progressbarwidget',
50 textTpl
: ['{percent:number("0")}%' ]