Remove navbar for viewing WOPI files

This commit is contained in:
Jure Grabnar 2016-10-03 20:02:13 +02:00
parent ec82f64df2
commit 72c5824e67

View file

@ -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