projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c51f11
)
8784: Link directly to keep-web when sharing collections.
author
Tom Clegg <tom@curoverse.com>
Wed, 21 Jun 2017 19:31:58 +0000
(15:31 -0400)
committer
Tom Clegg <tom@curoverse.com>
Wed, 21 Jun 2017 19:31:58 +0000
(15:31 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curoverse.com>
apps/workbench/app/controllers/collections_controller.rb
patch
|
blob
|
history
diff --git
a/apps/workbench/app/controllers/collections_controller.rb
b/apps/workbench/app/controllers/collections_controller.rb
index b6112ac96b29a452df5ce2f2e03c352a1c4cce37..3752bec7bef1e4ee9f6c59f5d999d66b4e016af5 100644
(file)
--- a/
apps/workbench/app/controllers/collections_controller.rb
+++ b/
apps/workbench/app/controllers/collections_controller.rb
@@
-283,7
+283,12
@@
class CollectionsController < ApplicationController
helper_method :download_link
def download_link
- collections_url + "/download/#{@object.uuid}/#{@search_sharing.first.api_token}/"
+ token = @search_sharing.first.api_token
+ if Rails.configuration.keep_web_url || Rails.configuration.keep_web_download_url
+ keep_web_url(@object.uuid, nil, {query_token: token})
+ else
+ collections_url + "/download/#{@object.uuid}/#{token}/"
+ end
end
def share