]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/SpamScoreDistribution.js
buildsys: makefiles convert to use simple parenthesis
[pmg-gui.git] / js / SpamScoreDistribution.js
index cca840e525510ec83ec2b17b9ee55caf7b5ac750..f9d82c1685c1560a010297790430eaf3051c2df6 100644 (file)
@@ -3,10 +3,11 @@ Ext.define('PMG.SpamScoreDistribution', {
     xtype: 'pmgSpamScoreDistribution',
 
     disableSelection: true,
+    border: false,
 
-    title: gettext('Spam Scores'),
+    title: gettext('Statistics') + ': ' + gettext('Spam Scores'),
 
-    tbar: [ { xtype: 'pmgStatTimeSelector' } ],
+    tbar: [{ xtype: 'pmgStatTimeSelector' }],
 
     store: {
        xclass: 'PMG.data.StatStore',
@@ -20,10 +21,10 @@ Ext.define('PMG.SpamScoreDistribution', {
                    if (rec.data.level >= 10) {
                        return PMG.Utils.scoreText + ' >= 10';
                    } else {
-                       return PMG.Utils.scoreText + ' ' + rec.data.level;
+                       return PMG.Utils.scoreText + ' ' + rec.data.level.toString();
                    }
-               }
-           }
+               },
+           },
        ],
     },
 
@@ -31,12 +32,12 @@ Ext.define('PMG.SpamScoreDistribution', {
        {
            header: PMG.Utils.scoreText,
            flex: 1,
-           dataIndex: 'label'
+           dataIndex: 'label',
        },
        {
            header: gettext("Count"),
            width: 150,
-           dataIndex: 'count'
+           dataIndex: 'count',
        },
        {
            header: gettext("Percentage"),
@@ -46,8 +47,8 @@ Ext.define('PMG.SpamScoreDistribution', {
            dataIndex: 'ratio',
            widget: {
                xtype: 'progressbarwidget',
-               textTpl: ['{percent:number("0")}%' ]
+               textTpl: ['{percent:number("0")}%'],
            },
-       }
-    ]
+       },
+    ],
 });