]> git.proxmox.com Git - proxmox-backup.git/commitdiff
gui - DataStoreContent: avoid useless icons, display file path
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 26 Mar 2020 17:01:04 +0000 (18:01 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 26 Mar 2020 17:01:04 +0000 (18:01 +0100)
www/DataStoreContent.js
www/css/ext6-pbs.css

index 8c9d24af01f43d1f24cdf1ea8939bd22b36475e6..f14b40eadea9c2bca4509683e45c28a638ba86e4 100644 (file)
@@ -80,13 +80,32 @@ Ext.define('PBS.DataStoreContent', {
                    };
                });
 
+               let backup_time_to_string = function(backup_time) {
+                   let pad = function(number) {
+                       if (number < 10) {
+                           return '0' + number;
+                       }
+                       return number;
+                   };
+                   return backup_time.getUTCFullYear() +
+                       '-' + pad(backup_time.getUTCMonth() + 1) +
+                       '-' + pad(backup_time.getUTCDate()) +
+                       'T' + pad(backup_time.getUTCHours()) +
+                       ':' + pad(backup_time.getUTCMinutes()) +
+                       ':' + pad(backup_time.getUTCSeconds()) +
+                       'Z';
+               };
+
                records.forEach(function(item) {
                    let group = item.data["backup-type"] + "/" + item.data["backup-id"];
                    let children = groups[group].children;
 
                    let data = item.data;
+
                    data.text = Ext.Date.format(data["backup-time"], 'Y-m-d H:i:s');
+                   data.text = group + '/' + backup_time_to_string(data["backup-time"]);
                    data.leaf = true;
+                   data.cls = 'no-leaf-icons';
 
                    children.push(data);
                });
@@ -182,7 +201,7 @@ Ext.define('PBS.DataStoreContent', {
                    header: gettext("Files"),
                    sortable: false,
                    dataIndex: 'files',
-                   flex: 4
+                   flex: 2
                }
            ],
 
index e9533c563b1164ef12a2bc97bc433f8b24882d91..d165b265af3a2931fc44482aa70f1abeca848e95 100644 (file)
@@ -180,3 +180,8 @@ p.logs {
     color: #555;
     margin-right: 5px;
 }
+
+.no-leaf-icons .x-tree-icon-leaf {
+    visibility: hidden;
+    width: 5px;
+}