mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-13 03:44:36 +02:00
Show filename as badges on part attachment info page.
This commit is contained in:
parent
7e1247398b
commit
99cf371ae5
3 changed files with 17 additions and 6 deletions
|
@ -62,7 +62,7 @@
|
||||||
|
|
||||||
{% if attach.secure %}
|
{% if attach.secure %}
|
||||||
<h6>
|
<h6>
|
||||||
<span class="badge badge-primary">
|
<span class="badge badge-success">
|
||||||
<i class="fas fa-fw fa-shield-alt"></i> {% trans %}attachment.secure{% endtrans %}
|
<i class="fas fa-fw fa-shield-alt"></i> {% trans %}attachment.secure{% endtrans %}
|
||||||
</span>
|
</span>
|
||||||
</h6>
|
</h6>
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
|
|
||||||
{% if attach.secure %}
|
{% if attach.secure %}
|
||||||
<h6>
|
<h6>
|
||||||
<span class="badge badge-primary">
|
<span class="badge badge-success">
|
||||||
<i class="fas fa-fw fa-shield-alt"></i> {% trans %}attachment.secure{% endtrans %}
|
<i class="fas fa-fw fa-shield-alt"></i> {% trans %}attachment.secure{% endtrans %}
|
||||||
</span>
|
</span>
|
||||||
</h6>
|
</h6>
|
||||||
|
|
|
@ -29,13 +29,24 @@
|
||||||
{{ attachment.filename }}
|
{{ attachment.filename }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td class="align-middle">
|
<td class="align-middle h6">
|
||||||
{% if attachment.external %}
|
{% if attachment.external %}
|
||||||
<i>{% trans %}attachment.external_file{% endtrans %}</i>
|
<span class="badge badge-primary">
|
||||||
|
<i class="fas fa-fw fa-globe"></i> {% trans %}attachment.external{% endtrans %}
|
||||||
|
</span>
|
||||||
{% elseif attachment_helper.fileExisting(attachment) %}
|
{% elseif attachment_helper.fileExisting(attachment) %}
|
||||||
{{ attachment_helper.humanFileSize(attachment) }}
|
<span class="badge badge-secondary">
|
||||||
|
<i class="fas fa-hdd fa-fw"></i> {{ attachment_helper.humanFileSize(attachment) }}
|
||||||
|
</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<b class="text-danger">{% trans %}attachment.file_not_found{% endtrans %}</b>
|
<span class="badge badge-warning">
|
||||||
|
<i class="fas fa-exclamation-circle fa-fw"></i> {% trans %}attachment.file_not_found{% endtrans %}
|
||||||
|
</span>
|
||||||
|
{% endif %}
|
||||||
|
{% if attachment.secure %}
|
||||||
|
<br><span class="badge badge-success">
|
||||||
|
<i class="fas fa-fw fa-shield-alt"></i> {% trans %}attachment.secure{% endtrans %}
|
||||||
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue