projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
10112: preload collections
[arvados.git]
/
apps
/
workbench
/
app
/
models
/
collection.rb
diff --git
a/apps/workbench/app/models/collection.rb
b/apps/workbench/app/models/collection.rb
index 686b816c08e2343419ea6e44f0f983a05cb0d6ce..ea81ad8c0a7588edc00062585d99ba9fa116035f 100644
(file)
--- a/
apps/workbench/app/models/collection.rb
+++ b/
apps/workbench/app/models/collection.rb
@@
-35,7
+35,11
@@
class Collection < ArvadosBase
end
def content_summary
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
end
def total_bytes
@@
-67,11
+71,7
@@
class Collection < ArvadosBase
end
def editable_attributes
end
def editable_attributes
- %w(name description manifest_text)
- end
-
- def self.creatable?
- false
+ %w(name description manifest_text filename)
end
def provenance
end
def provenance