aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-06-22 08:15:07 +0100
committerChristopher Baines <mail@cbaines.net>2018-06-22 08:15:07 +0100
commit7302c52a0011556527e5cbb6b0e996bd5bf49508 (patch)
treed3fe0d7e49c9687489bd090ab990a934e2bf75fc
parentd22670542b1dd0b2fd1b60368215e982e244183e (diff)
downloadgovuk-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.erb7
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>