|
|
@ -46,6 +46,19 @@ $(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getLogStatusIcon(entry) {
|
|
|
|
|
|
|
|
switch (entry) {
|
|
|
|
|
|
|
|
case 'COMPLETED':
|
|
|
|
|
|
|
|
return 'fw-success';
|
|
|
|
|
|
|
|
case 'PENDING':
|
|
|
|
|
|
|
|
return 'fw-pending';
|
|
|
|
|
|
|
|
case 'ERROR':
|
|
|
|
|
|
|
|
return 'fw-error';
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
return 'fw-info'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function loadOperationsLog(update) {
|
|
|
|
function loadOperationsLog(update) {
|
|
|
|
var operationsLogTable = "#operation-log";
|
|
|
|
var operationsLogTable = "#operation-log";
|
|
|
|
if (update) {
|
|
|
|
if (update) {
|
|
|
@ -95,7 +108,7 @@ function loadOperationsLog(update) {
|
|
|
|
data: "status",
|
|
|
|
data: "status",
|
|
|
|
class: "text-right extended-log-data log-record-status",
|
|
|
|
class: "text-right extended-log-data log-record-status",
|
|
|
|
render: function(data, type, full, meta) {
|
|
|
|
render: function(data, type, full, meta) {
|
|
|
|
return '<i class="icon fw fw-success"></i><span> ' + data + ' </span><i class="icon fw fw-down"></i>';
|
|
|
|
return '<i class="icon fw ' + getLogStatusIcon(data) + '"> </i><span> ' + data + ' </span><i class="icon fw fw-down"></i>';
|
|
|
|
},
|
|
|
|
},
|
|
|
|
width: "100%"
|
|
|
|
width: "100%"
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -166,11 +179,11 @@ function loadOperationsLog(update) {
|
|
|
|
function getLogStatusIcon(entry) {
|
|
|
|
function getLogStatusIcon(entry) {
|
|
|
|
switch (entry) {
|
|
|
|
switch (entry) {
|
|
|
|
case 'COMPLETED':
|
|
|
|
case 'COMPLETED':
|
|
|
|
return 'fw-success'
|
|
|
|
return 'fw-success';
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'PENDING':
|
|
|
|
case 'PENDING':
|
|
|
|
return 'fw-pending'
|
|
|
|
return 'fw-pending';
|
|
|
|
break;
|
|
|
|
case 'ERROR':
|
|
|
|
|
|
|
|
return 'fw-error';
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
return 'fw-info'
|
|
|
|
return 'fw-info'
|
|
|
|
}
|
|
|
|
}
|
|
|
|