mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-10 02:14:31 +02:00
Show symbols for different file types.
This commit is contained in:
parent
6551d3a56b
commit
87db2523e1
2 changed files with 41 additions and 6 deletions
|
@ -1,3 +1,5 @@
|
|||
{% import "helper.twig" as helper %}
|
||||
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -13,15 +15,10 @@
|
|||
<tbody>
|
||||
|
||||
|
||||
|
||||
{% for attachment in part.attachments %}
|
||||
<tr>
|
||||
<td>
|
||||
{% if attachment_helper.fileExisting(attachment) %}
|
||||
<i class="fas fa-file fa-3x"></i>
|
||||
{% else %}
|
||||
<i class="fas fa-exclamation-triangle fa-3x text-danger"></i>
|
||||
{% endif %}
|
||||
{{ helper.attachment_icon(attachment, attachment_helper) }}
|
||||
</td>
|
||||
<td class="align-middle">{{ attachment.name }}</td>
|
||||
<td class="align-middle">{{ attachment.type.fullPath }}</td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue