From 51359222548d1c1d693868c0c124a979cd0a3102 Mon Sep 17 00:00:00 2001 From: Luka Murn Date: Fri, 10 May 2019 16:51:54 +0200 Subject: [PATCH] Move the WOPI controls partial to /wopi folder, fix typo --- app/controllers/assets_controller.rb | 2 +- .../wopi/_file_wopi_controls.html.erb} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename app/views/{shared/_file_wopi_controlls.html.erb => assets/wopi/_file_wopi_controls.html.erb} (100%) diff --git a/app/controllers/assets_controller.rb b/app/controllers/assets_controller.rb index 92367b755..4e6a9e527 100644 --- a/app/controllers/assets_controller.rb +++ b/app/controllers/assets_controller.rb @@ -85,7 +85,7 @@ class AssetsController < ApplicationController if wopi_enabled? && wopi_file?(@asset) edit_supported, title = wopi_file_edit_button_status response_json['wopi-controls'] = render_to_string( - partial: 'shared/file_wopi_controlls.html.erb', + partial: 'assets/wopi/file_wopi_controls.html.erb', locals: { asset: @asset, can_edit: can_edit, diff --git a/app/views/shared/_file_wopi_controlls.html.erb b/app/views/assets/wopi/_file_wopi_controls.html.erb similarity index 100% rename from app/views/shared/_file_wopi_controlls.html.erb rename to app/views/assets/wopi/_file_wopi_controls.html.erb