6602: remove render_runtime_compact; instead use render_runtime with use_words =...
[arvados.git] / apps / workbench / app / views / pipeline_instances / _running_component.html.erb
index 4b14356fc2dfa1e7f44a8cc95baf8f19e6871336..63a2371a1b3dd2dc398c9b672311bd606d64bdf7 100644 (file)
@@ -25,8 +25,8 @@
               <% walltime = ((if current_job[:finished_at] then current_job[:finished_at] else Time.now() end) - current_job[:started_at]) %>
               <% cputime = (current_job[:runtime_constraints].andand[:min_nodes] || 1) *
                            ((current_job[:finished_at] || Time.now()) - current_job[:started_at]) %>
-              <%= render_runtime_compact(walltime) %>
-              <% if cputime > 0 %> / <%= render_runtime_compact(cputime) %> (<%= (cputime/walltime).round(1) %>&Cross;)<% end %>
+              <%= render_runtime(walltime, false) %>
+              <% if cputime > 0 %> / <%= render_runtime(cputime, false) %> (<%= (cputime/walltime).round(1) %>&Cross;)<% end %>
             <% end %>
           </div>
           <% end %>
@@ -35,7 +35,7 @@
             <%# column offset 5 %>
             <div class="col-md-6">
               <% queuetime = Time.now - Time.parse(current_job[:created_at].to_s) %>
-              Queued for <%= render_runtime_compact(queuetime) %>.
+              Queued for <%= render_runtime(queuetime, false) %>.
               <% begin %>
                 <% if current_job[:queue_position] == 0 %>
                   This job is next in the queue to run.