mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-12 11:24:31 +02:00
Use twig global AttachmentManager in templates.
This commit is contained in:
parent
6b99784238
commit
2dd807bbe6
4 changed files with 7 additions and 16 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue