10079: add "parent" to work_unit to aid the child display
[arvados.git] / apps / workbench / app / models / collection.rb
index 1bd711be6423fad3fc0b360cce9e918653419fdb..13f5357faadba842e57bbc24b1bdc883509ed7f6 100644 (file)
@@ -35,7 +35,11 @@ class Collection < ArvadosBase
   end
 
   def content_summary
-    ApplicationController.helpers.human_readable_bytes_html(total_bytes) + " " + super
+    if total_bytes > 0
+      ApplicationController.helpers.human_readable_bytes_html(total_bytes) + " " + super
+    else
+      super + " modified at " + modified_at.to_s
+    end
   end
 
   def total_bytes