diff options
author | Christopher Baines <mail@cbaines.net> | 2018-06-22 08:15:07 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-06-22 08:15:07 +0100 |
commit | 7302c52a0011556527e5cbb6b0e996bd5bf49508 (patch) | |
tree | d3fe0d7e49c9687489bd090ab990a934e2bf75fc | |
parent | d22670542b1dd0b2fd1b60368215e982e244183e (diff) | |
download | govuk-mini-environment-admin-7302c52a0011556527e5cbb6b0e996bd5bf49508.tar govuk-mini-environment-admin-7302c52a0011556527e5cbb6b0e996bd5bf49508.tar.gz |
Don't show the job duration if it's finished
This doesn't make sense.
-rw-r--r-- | app/views/shared/_jobs.html.erb | 7 |
1 files 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 - ) %> </span> </h4> </div> |