Skip to content

Commit

Permalink
Status page reordering
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneTR committed Jan 6, 2024
1 parent 3205177 commit 6098557
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/js/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ $(document).ready(function () {
{ data: 5, title: 'Branch'},
{ data: 6, title: 'Machine'},
{ data: 7, title: 'State'},
{ data: 8, title: 'Last Update', render: (el) => el == null ? '-' : dateToYMD(new Date(el)) },
{ data: 9, title: 'Created at', render: (el) => el == null ? '-' : dateToYMD(new Date(el)) },
{ data: 8, title: 'Updated at', render: (el) => el == null ? '-' : dateToYMD(new Date(el)) },
],
deferRender: true,
order: [[7, 'desc']] // API also orders, but we need to indicate order for the user
Expand Down Expand Up @@ -46,7 +46,7 @@ $(document).ready(function () {
{ data: 6, title: 'GMT version', render: function(el, type, row) {
if (el == null) return '-';

return `<a href="https://github.com/green-coding-berlin/green-metrics-tool/commit/${el}">${`${el.substr(0,3)}...${el.substr(-3,3)}`}</a> (${dateToYMD(new Date(row[7]), true)})`;
return `<a href="https://github.com/green-coding-berlin/green-metrics-tool/commit/${el}" title="${dateToYMD(new Date(row[7]))}">${`${el.substr(0,3)}...${el.substr(-3,3)}`}</a>`;

}},
{ data: 8, title: 'Base temp (°)'},
Expand Down

0 comments on commit 6098557

Please sign in to comment.