add btn-wopilink button ; fix OpenWopiLink when options is null

This commit is contained in:
2022-02-09 16:27:13 +01:00
parent f6e667700e
commit 08f544f6ea
4 changed files with 11 additions and 8 deletions

View File

@@ -20,6 +20,7 @@
{% block content %}
<div class="document-show">
<h1>{{ block('title') }}</h1>
{{ mm.mimeIcon(document.object.type) }}
<dl class="chill_view_data mt-4">
@@ -54,11 +55,7 @@
</li>
{% if chill_document_is_editable(document.object) %}
<li>
{{ document.object|chill_document_edit_button({
'changeIcon': 'fa-paragraph',
'changeClass': 'btn-update',
'noText': false
}) }}
{{ document.object|chill_document_edit_button }}
</li>
{% endif %}
{% if is_granted('CHILL_ACCOMPANYING_COURSE_DOCUMENT_UPDATE', document) %}