mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Show a hint if an attachment is secure.
This commit is contained in:
parent
d2a8055384
commit
11d45eaf59
2 changed files with 23 additions and 5 deletions
|
@ -19,18 +19,20 @@
|
||||||
{{ delete_btn }}
|
{{ delete_btn }}
|
||||||
|
|
||||||
{% set attach = attachment.vars.value %}
|
{% set attach = attachment.vars.value %}
|
||||||
|
{# @var attach \App\Entity\Attachments\Attachment #}
|
||||||
|
|
||||||
|
|
||||||
{% if attachment_helper.fileExisting(attach) %}
|
{% if attachment_helper.fileExisting(attach) %}
|
||||||
{% if not attach.external %}
|
{% if not attach.external %}
|
||||||
<br><br>
|
<br><br>
|
||||||
<h6>
|
<h6>
|
||||||
<span class="badge badge-primary">
|
<span class="badge badge-primary">
|
||||||
<i class="fas fa-fw fa-file"></i> {{ attach.filename }}
|
<i class="fas fa-fw fa-file"></i> {{ attach.filename }}
|
||||||
</span>
|
</span>
|
||||||
<br>
|
<br>
|
||||||
<span class="badge badge-secondary">
|
<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_helper.humanFileSize(attach) }}
|
||||||
</span>
|
</span>
|
||||||
</h6>
|
</h6>
|
||||||
{% else %}
|
{% else %}
|
||||||
<br><br>
|
<br><br>
|
||||||
|
@ -55,6 +57,14 @@
|
||||||
</span>
|
</span>
|
||||||
</h6>
|
</h6>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if attach.secure %}
|
||||||
|
<h6>
|
||||||
|
<span class="badge badge-primary">
|
||||||
|
<i class="fas fa-fw fa-shield-alt"></i> {% trans %}attachment.secure{% endtrans %}
|
||||||
|
</span>
|
||||||
|
</h6>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -56,6 +56,14 @@
|
||||||
</h6>
|
</h6>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if attach.secure %}
|
||||||
|
<h6>
|
||||||
|
<span class="badge badge-primary">
|
||||||
|
<i class="fas fa-fw fa-shield-alt"></i> {% trans %}attachment.secure{% endtrans %}
|
||||||
|
</span>
|
||||||
|
</h6>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue