Fix create WOPI file button

Closes SCI-3137
This commit is contained in:
Jure Grabnar 2019-03-19 21:04:29 +01:00
parent fddff9c627
commit cbf109f884
4 changed files with 20 additions and 6 deletions

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 53.59 64.356" width="53.589577" height="64.356148">
<g transform="translate(-216.07358,-549.28882)">
<g transform="matrix(1.8232952,0,0,1.8232952,-597.71681,-124.12247)">
<g transform="translate(0,-91.137241)">
<g fill="#eb3c00" transform="matrix(0.74069815,0,0,0.74069815,98.5698,-8.2505871)">
<path d="m469.87,671.03,0-28.52,25.229-9.3238,13.711,4.3877,0,38.392-13.711,4.133-25.229-9.0691,25.229,3.0361,0-33.201-16.454,3.8392,0,22.487z"/>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 627 B

View file

@ -50,6 +50,12 @@
/* Create wopi file */
.create-wopi-file-btn {
border: 0px;
display: contents;
img {
width: 32px;
margin-right: 5px;
}
}
#new-office-file-modal {

View file

@ -2,13 +2,10 @@
class: 'btn btn-default create-wopi-file-btn',
target: '_blank',
title: 'Create_new_file',
style: 'display: inline-block',
data: {
'id': element_id,
'type': element_type,
} do %>
<svg>
<polygon xmlns="http://www.w3.org/2000/svg" fill="#DA4127" points="29,29 29,2.4 20.2,0 3,6.4 3,6.4 3,25.7 9,23 9,7.4 20,5 20,28 3,25.7 20.2,32 20.2,32 29,29 29,29 29,29 " style="scroll-behavior: unset;"/>
</svg>
<%= t('assets.create_wopi_file.button_text') %>
<%= image_tag '/assets/office/office-online-logo.svg' %>
<%= t('assets.create_wopi_file.button_text') %>
<% end %>

View file

@ -7,7 +7,7 @@
<div class="panel-options pull-right">
<% if can_manage_protocol_in_module?(@protocol) ||
can_manage_protocol_in_repository?(@protocol) %>
<%= render partial: "assets/wopi/create_wopi_file_button",
<%= render partial: "/assets/wopi/create_wopi_file_button.html.erb",
locals: { element_id: step.id, element_type: 'Step' } %>
<a data-action="move-step"
class="btn btn-link"