mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-08 09:24:32 +02:00
Add a badge to attachment edit page, if the attachment is external.
This commit is contained in:
parent
f98ed076ce
commit
ad949d4d9b
1 changed files with 8 additions and 1 deletions
|
@ -23,13 +23,20 @@
|
||||||
<br><br>
|
<br><br>
|
||||||
<h6>
|
<h6>
|
||||||
<span class="badge badge-primary">
|
<span class="badge badge-primary">
|
||||||
<i class="fas fa-hdd 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 %}
|
||||||
|
<br><br>
|
||||||
|
<h6>
|
||||||
|
<span class="badge badge-primary">
|
||||||
|
<i class="fas fa-fw fa-globe"></i> {% trans %}attachment.external{% endtrans %}
|
||||||
|
</span>
|
||||||
|
</h6>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue