From 7302c52a0011556527e5cbb6b0e996bd5bf49508 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Fri, 22 Jun 2018 08:15:07 +0100 Subject: Don't show the job duration if it's finished This doesn't make sense. --- app/views/shared/_jobs.html.erb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/views/shared/_jobs.html.erb b/app/views/shared/_jobs.html.erb index d4c74b6..71d93da 100644 --- a/app/views/shared/_jobs.html.erb +++ b/app/views/shared/_jobs.html.erb @@ -36,11 +36,10 @@ <% if job['error_count'] != 0 %>again<% end %> in <% end %> + <%= distance_of_time_in_words_to_now( + job.run_at, include_seconds: true + ) %> <% end %> - - <%= distance_of_time_in_words_to_now( - job.run_at, include_seconds: true - ) %> -- cgit v1.2.3