Show a hint if an attachment is secure.

This commit is contained in:
Jan Böhmer 2019-10-13 13:34:26 +02:00
parent d2a8055384
commit 11d45eaf59
2 changed files with 23 additions and 5 deletions

View file

@ -19,6 +19,8 @@
{{ delete_btn }}
{% set attach = attachment.vars.value %}
{# @var attach \App\Entity\Attachments\Attachment #}
{% if attachment_helper.fileExisting(attach) %}
{% if not attach.external %}
@ -55,6 +57,14 @@
</span>
</h6>
{% 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>
</td>
</tr>

View file

@ -56,6 +56,14 @@
</h6>
{% 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>
</tr>
{% endfor %}