Skip to content

Commit

Permalink
feat(jobdetails): adding executes at detail
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf committed Mar 10, 2021
1 parent 1ddfaa6 commit 2e88919
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server/views/helpers/handlebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ const helpers = {
return mapping;
},

getDelayDate(job) {
return job.timestamp + job.delay;
},

encodeURI(url) {
if (typeof url !== 'string') {
return '';
Expand Down
7 changes: 7 additions & 0 deletions src/server/views/partials/dashboard/jobDetails.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@
</div>
{{/if}}

{{#if this.delay}}
<div class="col-sm-3">
<h5>Executes At</h5>
{{moment (getDelayDate this) "llll"}}
</div>
{{/if}}

<div class="col-sm-3">
<h5>Attempts Made</h5>
{{this.attemptsMade}}
Expand Down

0 comments on commit 2e88919

Please sign in to comment.