10079: add "parent" to work_unit to aid the child display
[arvados.git] / apps / workbench / app / models / collection.rb
index 686b816c08e2343419ea6e44f0f983a05cb0d6ce..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
@@ -70,10 +74,6 @@ class Collection < ArvadosBase
     %w(name description manifest_text)
   end
 
-  def self.creatable?
-    false
-  end
-
   def provenance
     arvados_api_client.api "collections/#{self.uuid}/", "provenance"
   end