]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[WebUI] Add sender, recipients and subject columns
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 20 Mar 2017 13:55:37 +0000 (13:55 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 20 Mar 2017 13:55:37 +0000 (13:55 +0000)
interface/js/app/history.js

index 8756a5f5a7d5b654a7b93576f7aca3e400622d2a..e5981e1d67fcd24a6f436bf708842042e95f35ce 100644 (file)
@@ -98,6 +98,7 @@ function($, _, Humanize) {
                 "value": scan_time
             }
             item.id = item['message-id'];
+            item.rcpt_mime = item.rcpt_mime.join(",");
             items.push(item);
         });
 
@@ -151,6 +152,33 @@ function($, _, Humanize) {
                     "width": 150,
                     "maxWidth": 150
                 }
+            }, {
+                "name": "sender_mime",
+                "title": "From",
+                "breakpoints": "xs sm",
+                "style": {
+                    "font-size": "11px",
+                    "width": 150,
+                    "maxWidth": 150
+                }
+            }, {
+                "name": "rcpt_mime",
+                "title": "To",
+                "breakpoints": "xs sm",
+                "style": {
+                    "font-size": "11px",
+                    "width": 150,
+                    "maxWidth": 150
+                }
+            }, {
+                "name": "subject",
+                "title": "Subject",
+                "breakpoints": "xs sm",
+                "style": {
+                    "font-size": "11px",
+                    "width": 150,
+                    "maxWidth": 150
+                }
             }, {
                 "name": "action",
                 "title": "Action",
@@ -182,8 +210,8 @@ function($, _, Humanize) {
                 "breakpoints": "xs sm",
                 "style": {
                     "font-size": "11px",
-                    "width": 120,
-                    "maxWidth": 120
+                    "width": 90,
+                    "maxWidth": 110
                 },
                 "formatter": Humanize.compactInteger
             }, {
@@ -210,8 +238,8 @@ function($, _, Humanize) {
                 "breakpoints": "xs sm",
                 "style": {
                     "font-size": "11px",
-                    "width": 200,
-                    "maxWidth": 200
+                    "width": 100,
+                    "maxWidth": 150
                 }
             }];
     }