adds some render information to some columns
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-02-10 23:44:01 +01:00
parent c8a938bc87
commit 42571295ed

View File

@@ -83,10 +83,26 @@ $(document).ready(function() {
data: "epgMatchName", data: "epgMatchName",
}, },
{ {
data: "isEnabled", data: "isEnabled",
searchable: false,
render: function ( data, type, row, meta ) {
if (data) {
return '<span class="text-primary">Enabled</span>'
} else {
return '<span class="text-danger">Disabled</span>'
}
}
}, },
{ {
data: "isAvailable", data: "isAvailable",
searchable: false,
render: function ( data, type, row, meta ) {
if (data) {
return '<span class="text-primary">yes</span>'
} else {
return '<span class="text-danger">no</span>'
}
}
}, },
{ {
data: "urlProxy", data: "urlProxy",
@@ -96,9 +112,17 @@ $(document).ready(function() {
}, },
{ {
data: "created", data: "created",
searchable: false,
render: function ( data, type, row, meta ) {
return moment(data).format('YYYY-MM-DD HH:mm');
}
}, },
{ {
data: "modified", data: "modified",
searchable: false,
render: function ( data, type, row, meta ) {
return moment(data).format('YYYY-MM-DD HH:mm');
}
} }
], ],
columnDefs: [ columnDefs: [