diff --git a/www/mobile/TaskList.js b/www/mobile/TaskList.js index dccb5a0f0..3d0f71120 100644 --- a/www/mobile/TaskList.js +++ b/www/mobile/TaskList.js @@ -9,8 +9,7 @@ Ext.define('PVE.TaskListBase', { }, { xtype: 'list', - //flex: 1, - height: 800, + flex: 1, disableSelection: true, listeners: { itemsingletap: function(list, index, target, record) { @@ -19,12 +18,18 @@ Ext.define('PVE.TaskListBase', { } }, itemTpl: [ - '{starttime:date("M d H:i:s")} - {endtime:date("M d H:i:s")}
', - '{[this.desc(values)]}
', - 'node: {node} Status: {status}', + '
' + + '{[this.desc(values)]}', + '' + + '{starttime:date("M d H:i:s")} - {endtime:date("H:i:s")}' + + '
', + 'node: {node}
Status: {[this.status(values)]}
', { desc: function(values) { return PVE.Utils.format_task_description(values.type, values.id); + }, + status: function(values) { + return Ext.String.ellipsis(values.status, 160); } } ] @@ -74,7 +79,7 @@ Ext.define('PVE.ClusterTaskList', { }, config: { - baseUrl: '/cluster/tasks', + baseUrl: '/cluster/tasks' }, initialize: function() { diff --git a/www/mobile/TaskViewer.js b/www/mobile/TaskViewer.js index 1e6143c59..a66f70859 100644 --- a/www/mobile/TaskViewer.js +++ b/www/mobile/TaskViewer.js @@ -89,7 +89,7 @@ Ext.define('PVE.TaskViewer', { var d = response.result.data; var kv = []; - kv.push({ key: gettext('Status'), value: d.exitstatus || d.status }); + kv.push({ key: gettext('Taskstatus'), value: d.status }); kv.push({ key: gettext('Node'), value: d.node }); kv.push({ key: gettext('User'), value: d.user }); kv.push({ key: gettext('Starttime'), value: PVE.Utils.render_timestamp(d.starttime) });