mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-24 03:49:31 +00:00
Moved attachment_icon logic to attachment.macro.html.twig
This commit is contained in:
parent
a01ed3acf6
commit
9adebc35c5
3 changed files with 21 additions and 22 deletions
|
|
@ -1,5 +1,3 @@
|
|||
{% import "helper.twig" as helper %}
|
||||
|
||||
<table class="table table-striped table-sm table-hover table-responsive-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
|
|
@ -18,7 +16,8 @@
|
|||
{% for attachment in part.attachments %}
|
||||
<tr>
|
||||
<td>
|
||||
{{ helper.attachment_icon(attachment, attachment_manager) }}
|
||||
{% import "components/attachments.macro.html.twig" as attachments %}
|
||||
{{ attachments.attachment_icon(attachment, attachment_manager) }}
|
||||
</td>
|
||||
<td class="align-middle">{{ attachment.name }}</td>
|
||||
<td class="align-middle">{{ attachment.attachmentType.fullPath }}</td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue