diff --git a/templates/apps.html b/templates/apps.html index 0907078..273bbcd 100644 --- a/templates/apps.html +++ b/templates/apps.html @@ -8,9 +8,19 @@ + + + + + - - + + + + + + +
AppCurrent jobCreated timeStarted timeEnd timeCommit
{{app.name}}
{{app.name}} {{app.app_list}} {{app.job_name}} #{{app.job_id}} {{app.job_state}}{{timestampToDate(app.created_time)}}{{timestampToDate(app.started_time)}}{{timestampToDate(app.end_time)}}{{app.revision.slice(0, 7)}}
@@ -25,6 +35,14 @@ el: '#apps', data: { apps: [] + }, + methods: { + timestampToDate: function (timestamp) { + console.log(timestamp) + if (timestamp === null) return ""; + + return new Date(timestamp * 1000).toLocaleString() + } } })