6602: enhance render_runtime method to display seconds when days, hours, and minutes...
authorradhika <radhika@curoverse.com>
Wed, 29 Jul 2015 17:47:43 +0000 (13:47 -0400)
committerradhika <radhika@curoverse.com>
Wed, 29 Jul 2015 17:47:43 +0000 (13:47 -0400)
apps/workbench/app/helpers/pipeline_instances_helper.rb

index 66a7f1746aa4944668683c8edaeebeb1934a1487..8fafbc2022d5873032d1f9565c2385a26f4a794b 100644 (file)
@@ -298,7 +298,7 @@ module PipelineInstancesHelper
 
       s += "#{minutes}<span class='time-label-divider'>m</span>"
 
-      if not round_to_min
+      if not round_to_min or (days == 0 and hours == 0 and minutes == 0)
         s += "#{seconds}<span class='time-label-divider'>s</span>"
       end
     end