scinote-web/app/views/assets/wopi/_create_wopi_file_button.html.erb

13 lines
447 B
Text
Raw Normal View History

<% if wopi_enabled? %>
<%= link_to create_wopi_file_path,
2020-01-28 22:30:57 +08:00
class: 'btn btn-light create-wopi-file-btn',
target: '_blank',
title: 'Create_new_file',
data: { 'id': element_id, 'type': element_type, } do %>
2020-01-28 22:30:57 +08:00
<span class="btn btn-light new-asset-upload-button">
<%= image_tag 'office/office.svg' %>
<%=t 'assets.create_wopi_file.button_text' %>
</span>
<% end %>
<% end %>