3824: Do not say "There are jobs in the queue ahead of this one" if queue_position...
authorTom Clegg <tom@curoverse.com>
Thu, 23 Oct 2014 20:38:04 +0000 (16:38 -0400)
committerTom Clegg <tom@curoverse.com>
Mon, 27 Oct 2014 16:13:54 +0000 (12:13 -0400)
apps/workbench/app/views/pipeline_instances/_running_component.html.erb

index caa8377ad03a4d2e11c2662b4b16aef1bfee7391..85a1530204f18a6633feb07415438faec80fb66b 100644 (file)
@@ -46,7 +46,7 @@
                   This job is next in the queue to run.
                 <% elsif current_job[:queue_position] == 1 %>
                   There is 1 job in the queue ahead of this one.
-                <% else %>
+                <% elsif current_job[:queue_position] %>
                   There are <%= current_job[:queue_position] %> jobs in the queue ahead of this one.
                 <% end %>
               <% rescue %>