scinote-web/app/views/shared/_file_preview_modal.html.erb
aignatov-bio 6eae12efab
Updating permission check for image editing [SCI - 3153, 3159] (#1568)
*Add permission check for assets editing

* Add check for image format
2019-03-19 13:52:57 +01:00

30 lines
1 KiB
Text

<div id="filePreviewModal"
class="modal modal-file-preview"
role="dialog"
tabindex="-1"
aria-labelledby="filePreviewModal"
aria-hidden="true"
data-backdrop="static"
data-keyboard="false">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="preview-close" data-dismiss="modal"><span class="fas fa-times"></span></button>
<span class="file-name"></span>
<span class="file-wopi-controls"></span>
<a class="file-download-link" href="#" data-turbolinks="false">
<p><span class="fas fa-download"></span> <%= t('Download')%></p>
</a>
<a class="file-edit-link" style="display:none" href='#'>
<p><span class="fas fa-pencil-alt"></span> <%= t('Edit')%></p>
</a>
</div>
<div class="modal-body">
<div class="file-preview-container">
</div>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>