projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tweak table styles and add Total row
[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 94a2b959164200e874869a8f15b6e9724e04b7c3..6bc55bde3d21199fda4c31fa3143800d9b03c026 100644
(file)
--- a/
apps/workbench/app/models/collection.rb
+++ b/
apps/workbench/app/models/collection.rb
@@
-1,4
+1,5
@@
class Collection < ArvadosBase
class Collection < ArvadosBase
+
def total_bytes
if files
tot = 0
def total_bytes
if files
tot = 0
@@
-13,7
+14,16
@@
class Collection < ArvadosBase
false
end
false
end
+ def self.creatable?
+ false
+ end
+
def provenance
$arvados_api_client.api "collections/#{self.uuid}/", "provenance"
end
def provenance
$arvados_api_client.api "collections/#{self.uuid}/", "provenance"
end
+
+ def used_by
+ $arvados_api_client.api "collections/#{self.uuid}/", "used_by"
+ end
+
end
end