diff --git a/frontend/js/energy-timeline.js b/frontend/js/energy-timeline.js
index be59e8e37..c89bd2620 100644
--- a/frontend/js/energy-timeline.js
+++ b/frontend/js/energy-timeline.js
@@ -86,9 +86,9 @@ $(document).ready(function () {
{ data: 4, title: 'Filename'},
{ data: 6, title: 'Machine'},
{ data: 7, title: 'Schedule Mode'},
- { data: 8, title: 'Last Scheduled', render: (data) => data == null ? '-' : dateToYMD(new Date(data)) },
- { data: 9, title: 'Created At', render: (data) => data == null ? '-' : dateToYMD(new Date(data)) },
- { data: 10, title: 'Updated At', render: (data) => data == null ? '-' : dateToYMD(new Date(data)) },
+ { data: 8, title: 'Last Scheduled', render: (el) => el == null ? '-' : dateToYMD(new Date(el)) },
+ { data: 9, title: 'Created At', render: (el) => el == null ? '-' : dateToYMD(new Date(el)) },
+ { data: 10, title: 'Updated At', render: (el) => el == null ? '-' : dateToYMD(new Date(el)) },
{
data: 0,
title: 'Timeline Link',
diff --git a/frontend/js/helpers/runs.js b/frontend/js/helpers/runs.js
index 7c51ad2cd..3cf0593ae 100644
--- a/frontend/js/helpers/runs.js
+++ b/frontend/js/helpers/runs.js
@@ -95,11 +95,11 @@ const getRunsTable = (el, url, include_uri=true, include_button=true, searching=
{
data: 1,
title: 'Name',
- render: function(name, type, row) {
+ render: function(el, type, row) {
- if(row[9] == null) name = `${name} (in progress 🔥)`;
- if(row[5] != null) name = `${name} invalidated`;
- return `${name}`
+ if(row[9] == null) el = `${el} (in progress 🔥)`;
+ if(row[5] != null) el = `${el} invalidated`;
+ return `${el}`
},
},
]
@@ -108,11 +108,11 @@ const getRunsTable = (el, url, include_uri=true, include_button=true, searching=
columns.push({
data: 2,
title: '( / / etc.) Repo',
- render: function(uri, type, row) {
- let uri_link = replaceRepoIcon(uri);
+ render: function(el, type, row) {
+ let uri_link = replaceRepoIcon(el);
if (uri.startsWith("http")) {
- uri_link = `${uri_link} `;
+ uri_link = `${uri_link} `;
}
return uri_link
},
@@ -124,24 +124,24 @@ const getRunsTable = (el, url, include_uri=true, include_button=true, searching=
columns.push({
data: 8,
title: 'Commit',
- render: function(commit, type, row) {
+ render: function(el, type, row) {
// Modify the content of the "Name" column here
- return commit == null ? null : `${commit.substr(0,3)}...${commit.substr(-3,3)}`
+ return el == null ? null : `${el.substr(0,3)}...${el.substr(-3,3)}`
},
});
columns.push({ data: 6, title: 'Filename', });
columns.push({ data: 7, title: 'Machine' });
- columns.push({ data: 4, title: 'Last run', render: (data) => data == null ? '-' : dateToYMD(new Date(data)) });
+ columns.push({ data: 4, title: 'Last run', render: (el) => el == null ? '-' : dateToYMD(new Date(el)) });
const button_title = include_button ? '' : '';
columns.push({
data: 0,
title: button_title,
- render: function(id, type, row) {
+ render: function(el, type, row) {
// Modify the content of the "Name" column here
- return ` `
+ return ` `
}
});
diff --git a/frontend/js/hog-details.js b/frontend/js/hog-details.js
index f1b188b50..f64379d35 100644
--- a/frontend/js/hog-details.js
+++ b/frontend/js/hog-details.js
@@ -186,33 +186,33 @@ $(document).ready(function () {
data: 1,
title: 'Energy Impact',
className: "dt-body-right",
- render: function(data, type, row) {
+ render: function(el, type, row) {
if (type === 'display' || type === 'filter') {
- return (data.toLocaleString())
+ return (el.toLocaleString())
}
- return data;
+ return el;
}
},
{
data: 2,
title: 'Mb Read',
className: "dt-body-right",
- render: function(data, type, row) {
+ render: function(el, type, row) {
if (type === 'display' || type === 'filter') {
- return Math.trunc(data / 1048576).toLocaleString();
+ return Math.trunc(el / 1048576).toLocaleString();
}
- return data;
+ return el;
}
},
{
data: 3,
title: 'Mb Written',
className: "dt-body-right",
- render: function(data, type, row) {
+ render: function(el, type, row) {
if (type === 'display' || type === 'filter') {
- return Math.trunc(data / 1048576).toLocaleString();
+ return Math.trunc(el / 1048576).toLocaleString();
}
- return data;
+ return el;
}
},
{ data: 4, title: 'Intr Wakeups',className: "dt-body-right"},
@@ -222,7 +222,7 @@ $(document).ready(function () {
{
data: null,
title: '',
- render: function(data, type, row) {
+ render: function(el, type, row) {
return ``;
},
orderable: false,
diff --git a/frontend/js/hog.js b/frontend/js/hog.js
index 52c47f955..5f886583c 100644
--- a/frontend/js/hog.js
+++ b/frontend/js/hog.js
@@ -16,11 +16,11 @@ $(document).ready(function () {
data: 1,
title: 'Energy Impact',
className: "dt-body-right",
- render: function(data, type, row) {
+ render: function(el, type, row) {
if (type === 'display' || type === 'filter') {
- return (data.toLocaleString())
+ return (el.toLocaleString())
}
- return data;
+ return el;
}
},
],