|
@@ -176,12 +176,13 @@ jQuery(function($){
|
|
"columns": [
|
|
"columns": [
|
|
{"name":"chkbox","title":"","style":{"min-width":"60px","width":"60px","text-align":"center"},"filterable": false,"sortable": false,"type":"html"},
|
|
{"name":"chkbox","title":"","style":{"min-width":"60px","width":"60px","text-align":"center"},"filterable": false,"sortable": false,"type":"html"},
|
|
{"sorted": true,"name":"id","title":"ID","style":{"maxWidth":"60px","width":"60px","text-align":"center"}},
|
|
{"sorted": true,"name":"id","title":"ID","style":{"maxWidth":"60px","width":"60px","text-align":"center"}},
|
|
- {"name":"server_w_port","title":"Server"},
|
|
|
|
|
|
+ {"name":"server_w_port","title":"Server","breakpoints":"xs sm md","style":{"word-break":"break-all"}},
|
|
{"name":"enc1","title":lang.encryption,"breakpoints":"all"},
|
|
{"name":"enc1","title":lang.encryption,"breakpoints":"all"},
|
|
{"name":"user1","title":lang.username},
|
|
{"name":"user1","title":lang.username},
|
|
{"name":"exclude","title":lang.excludes,"breakpoints":"all"},
|
|
{"name":"exclude","title":lang.excludes,"breakpoints":"all"},
|
|
{"name":"mins_interval","title":lang.interval + " (min)","breakpoints":"all"},
|
|
{"name":"mins_interval","title":lang.interval + " (min)","breakpoints":"all"},
|
|
- {"name":"last_run","title":lang.last_run,"breakpoints":"all"},
|
|
|
|
|
|
+ {"name":"last_run","title":lang.last_run,"breakpoints":"xs sm md"},
|
|
|
|
+ {"name":"exit_status","filterable": false,"title":lang.syncjob_last_run_result},
|
|
{"name":"log","title":"Log"},
|
|
{"name":"log","title":"Log"},
|
|
{"name":"active","filterable": false,"style":{"maxWidth":"70px","width":"70px"},"title":lang.active,"formatter": function(value){return 1==value?'<i class="bi bi-check-lg"></i>':0==value&&'<i class="bi bi-x-lg"></i>';}},
|
|
{"name":"active","filterable": false,"style":{"maxWidth":"70px","width":"70px"},"title":lang.active,"formatter": function(value){return 1==value?'<i class="bi bi-check-lg"></i>':0==value&&'<i class="bi bi-x-lg"></i>';}},
|
|
{"name":"is_running","filterable": false,"style":{"maxWidth":"120px","width":"100px"},"title":lang.status},
|
|
{"name":"is_running","filterable": false,"style":{"maxWidth":"120px","width":"100px"},"title":lang.status},
|
|
@@ -224,6 +225,18 @@ jQuery(function($){
|
|
if (!item.last_run > 0) {
|
|
if (!item.last_run > 0) {
|
|
item.last_run = lang.waiting;
|
|
item.last_run = lang.waiting;
|
|
}
|
|
}
|
|
|
|
+ if (item.success == null) {
|
|
|
|
+ item.success = '-';
|
|
|
|
+ item.exit_status = '';
|
|
|
|
+ } else {
|
|
|
|
+ item.success = '<i class="text-' + (item.success == 1 ? 'success' : 'danger') + ' bi bi-' + (item.success == 1 ? 'check-lg' : 'x-lg') + '"></i>';
|
|
|
|
+ }
|
|
|
|
+ if (lang['syncjob_'+item.exit_status]) {
|
|
|
|
+ item.exit_status = lang['syncjob_'+item.exit_status];
|
|
|
|
+ } else if (item.success != '-') {
|
|
|
|
+ item.exit_status = lang.syncjob_check_log;
|
|
|
|
+ }
|
|
|
|
+ item.exit_status = item.success + ' ' + item.exit_status;
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}),
|
|
}),
|