mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 13:34:28 +02:00
Show private attachment badge above the view link.
This commit is contained in:
parent
a4eae19a1f
commit
5ffd44466e
1 changed files with 7 additions and 7 deletions
|
@ -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 %}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue