Use twig global AttachmentManager in templates.

This commit is contained in:
Jan Böhmer 2020-04-03 14:56:48 +02:00
parent 6b99784238
commit 2dd807bbe6
4 changed files with 7 additions and 16 deletions

View file

@ -22,7 +22,7 @@
{# @var attach \App\Entity\Attachments\Attachment #}
{% if attachment_helper.fileExisting(attach) %}
{% if attachment_manager.fileExisting(attach) %}
{% if not attach.external %}
<br><br>
<h6>
@ -31,7 +31,7 @@
</span>
<br>
<span class="badge badge-secondary">
<i class="fas fa-hdd fa-fw"></i> {{ attachment_helper.humanFileSize(attach) }}
<i class="fas fa-hdd fa-fw"></i> {{ attachment_manager.humanFileSize(attach) }}
</span>
</h6>
{% else %}