mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-30 11:41:19 +08:00
Renames the WOPI_BREADCRUMBS_HOST env variable to WOPI_USER_HOST
This commit is contained in:
parent
803934e07d
commit
d917cf3340
1 changed files with 9 additions and 9 deletions
|
@ -70,11 +70,11 @@ class WopiController < ActionController::Base
|
||||||
UserCanNotWriteRelative: true,
|
UserCanNotWriteRelative: true,
|
||||||
CloseUrl: @close_url,
|
CloseUrl: @close_url,
|
||||||
DownloadUrl: url_for(controller: 'assets', action: 'download',
|
DownloadUrl: url_for(controller: 'assets', action: 'download',
|
||||||
id: @asset.id, host: ENV['WOPI_BREADCRUMBS_HOST']),
|
id: @asset.id, host: ENV['WOPI_USER_HOST']),
|
||||||
HostEditUrl: url_for(controller: 'assets', action: 'edit',
|
HostEditUrl: url_for(controller: 'assets', action: 'edit',
|
||||||
id: @asset.id, host: ENV['WOPI_BREADCRUMBS_HOST']),
|
id: @asset.id, host: ENV['WOPI_USER_HOST']),
|
||||||
HostViewUrl: url_for(controller: 'assets', action: 'view',
|
HostViewUrl: url_for(controller: 'assets', action: 'view',
|
||||||
id: @asset.id, host: ENV['WOPI_BREADCRUMBS_HOST']),
|
id: @asset.id, host: ENV['WOPI_USER_HOST']),
|
||||||
BreadcrumbBrandName: @breadcrumb_brand_name,
|
BreadcrumbBrandName: @breadcrumb_brand_name,
|
||||||
BreadcrumbBrandUrl: @breadcrumb_brand_url,
|
BreadcrumbBrandUrl: @breadcrumb_brand_url,
|
||||||
BreadcrumbFolderName: @breadcrumb_folder_name,
|
BreadcrumbFolderName: @breadcrumb_folder_name,
|
||||||
|
@ -286,21 +286,21 @@ class WopiController < ActionController::Base
|
||||||
if @protocol.in_module?
|
if @protocol.in_module?
|
||||||
@close_url = protocols_my_module_url(@protocol.my_module,
|
@close_url = protocols_my_module_url(@protocol.my_module,
|
||||||
only_path: false,
|
only_path: false,
|
||||||
host: ENV['WOPI_BREADCRUMBS_HOST'])
|
host: ENV['WOPI_USER_HOST'])
|
||||||
|
|
||||||
project = @protocol.my_module.experiment.project
|
project = @protocol.my_module.experiment.project
|
||||||
@breadcrumb_brand_name = project.name
|
@breadcrumb_brand_name = project.name
|
||||||
@breadcrumb_brand_url = project_url(project,
|
@breadcrumb_brand_url = project_url(project,
|
||||||
only_path: false,
|
only_path: false,
|
||||||
host: ENV['WOPI_BREADCRUMBS_HOST'])
|
host: ENV['WOPI_USER_HOST'])
|
||||||
@breadcrumb_folder_name = @protocol.my_module.name
|
@breadcrumb_folder_name = @protocol.my_module.name
|
||||||
else
|
else
|
||||||
@close_url = protocols_url(only_path: false,
|
@close_url = protocols_url(only_path: false,
|
||||||
host: ENV['WOPI_BREADCRUMBS_HOST'])
|
host: ENV['WOPI_USER_HOST'])
|
||||||
|
|
||||||
@breadcrump_brand_name = 'Projects'
|
@breadcrump_brand_name = 'Projects'
|
||||||
@breadcrumb_brand_url = root_url(only_path: false,
|
@breadcrumb_brand_url = root_url(only_path: false,
|
||||||
host: ENV['WOPI_BREADCRUMBS_HOST'])
|
host: ENV['WOPI_USER_HOST'])
|
||||||
@breadcrumb_folder_name = 'Protocol managament'
|
@breadcrumb_folder_name = 'Protocol managament'
|
||||||
end
|
end
|
||||||
@breadcrumb_folder_url = @close_url
|
@breadcrumb_folder_url = @close_url
|
||||||
|
@ -310,12 +310,12 @@ class WopiController < ActionController::Base
|
||||||
|
|
||||||
@close_url = results_my_module_url(@my_module,
|
@close_url = results_my_module_url(@my_module,
|
||||||
only_path: false,
|
only_path: false,
|
||||||
host: ENV['WOPI_BREADCRUMBS_HOST'])
|
host: ENV['WOPI_USER_HOST'])
|
||||||
|
|
||||||
@breadcrumb_brand_name = @my_module.experiment.project.name
|
@breadcrumb_brand_name = @my_module.experiment.project.name
|
||||||
@breadcrumb_brand_url = project_url(@my_module.experiment.project,
|
@breadcrumb_brand_url = project_url(@my_module.experiment.project,
|
||||||
only_path: false,
|
only_path: false,
|
||||||
host: ENV['WOPI_BREADCRUMBS_HOST'])
|
host: ENV['WOPI_USER_HOST'])
|
||||||
@breadcrumb_folder_name = @my_module.name
|
@breadcrumb_folder_name = @my_module.name
|
||||||
@breadcrumb_folder_url = @close_url
|
@breadcrumb_folder_url = @close_url
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue