diff --git a/src/server/views/helpers/handlebars.js b/src/server/views/helpers/handlebars.js index 33b42eb4..5d664b20 100644 --- a/src/server/views/helpers/handlebars.js +++ b/src/server/views/helpers/handlebars.js @@ -23,6 +23,10 @@ const helpers = { return new Handlebars.SafeString(JSON.stringify(...args)); }, + isNumber(operand) { + return parseInt(operand, 10).toString() === String(operand); + }, + adjustedPage(currentPage, pageSize, newPageSize) { const firstId = (currentPage - 1) * pageSize; return _.ceil(firstId / newPageSize) + 1; diff --git a/src/server/views/partials/dashboard/jobDetails.hbs b/src/server/views/partials/dashboard/jobDetails.hbs index a0ffe046..19e43b09 100644 --- a/src/server/views/partials/dashboard/jobDetails.hbs +++ b/src/server/views/partials/dashboard/jobDetails.hbs @@ -49,19 +49,23 @@ {{#unless this.queue.IS_BEE}}
{{json this._progress true}}+{{/if}} {{/unless}} {{#if this.returnvalue}}