Skip to content

Commit

Permalink
remove duration unless complete
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jul 2, 2011
1 parent 384d3d8 commit 78f8332
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/http/public/javascripts/job.js
Expand Up @@ -158,11 +158,13 @@ Job.prototype.renderUpdate = function(){
this.renderTimestamp('created_at');
this.renderTimestamp('updated_at');
this.renderTimestamp('failed_at');
el.find('.duration td:last-child').text(relative(this.duration));

// show updated as completed
// completion
if ('complete' == this.state) {
el.find('.duration td:last-child').text(relative(this.duration));
el.find('.updated_at td:first-child').text('Completed: ');
} else {
el.find('.duration').remove();
}

// progress indicator
Expand Down

0 comments on commit 78f8332

Please sign in to comment.