mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 11:45:18 +08:00
Remove navbar for viewing WOPI files
This commit is contained in:
parent
ec82f64df2
commit
72c5824e67
1 changed files with 4 additions and 0 deletions
|
@ -74,6 +74,8 @@ class AssetsController < ApplicationController
|
|||
@token = current_user.get_wopi_token
|
||||
@ttl = (current_user.wopi_token_ttl * 1000).to_s
|
||||
create_wopi_file_activity(current_user, true)
|
||||
|
||||
render layout: false
|
||||
end
|
||||
|
||||
def view
|
||||
|
@ -81,6 +83,8 @@ class AssetsController < ApplicationController
|
|||
@favicon_url = @asset.favicon_url('view')
|
||||
@token = current_user.get_wopi_token
|
||||
@ttl = (current_user.wopi_token_ttl * 1000).to_s
|
||||
|
||||
render layout: false
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue