Show private attachment badge above the view link.

This commit is contained in:
Jan Böhmer 2022-12-18 17:35:29 +01:00
parent a4eae19a1f
commit 5ffd44466e

View file

@ -138,6 +138,13 @@
</h6> </h6>
{% endif %} {% endif %}
{% if attach.secure %}
<h6>
<span class="badge bg-success">
<i class="fas fa-fw fa-shield-alt"></i> {% trans %}attachment.secure{% endtrans %}
</span>
</h6>
{% if attach.secure and not is_granted('show_private', attach) %} {% if attach.secure and not is_granted('show_private', attach) %}
{# Leave blank #} {# Leave blank #}
{% elseif attach.picture %} {% elseif attach.picture %}
@ -155,13 +162,6 @@
</span> </span>
</h6> </h6>
{% endif %} {% endif %}
{% if attach.secure %}
<h6>
<span class="badge bg-success">
<i class="fas fa-fw fa-shield-alt"></i> {% trans %}attachment.secure{% endtrans %}
</span>
</h6>
{% endif %} {% endif %}
{% endif %} {% endif %}