mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-18 08:09:34 +00:00
Merge remote-tracking branch 'origin/feature/custom-part-status' into feature/all-features
This commit is contained in:
commit
697b3a73cd
3 changed files with 16 additions and 8 deletions
|
|
@ -36,6 +36,19 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if part.partCustomState is not null %}
|
||||
<div class="mt-1">
|
||||
<h6>
|
||||
<span class="badge bg-primary" title="{% trans %}part_custom_state.caption{% endtrans %}"><i class="fas fa-tools fa-fw"></i> {{ part.partCustomState.name }}</span>
|
||||
|
||||
{% if part.partCustomState is not null and part.partCustomState.masterPictureAttachment and attachment_manager.fileExisting(part.partCustomState.masterPictureAttachment) %}
|
||||
<br/>
|
||||
<img class="img-fluid img-thumbnail thumbnail-sm" src="{{ attachment_thumbnail(part.partCustomState.masterPictureAttachment, 'thumbnail_md') }}" alt="{% trans %}attachment.preview.alt{% endtrans %}" />
|
||||
{% endif %}
|
||||
</h6>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{# Favorite Status tag #}
|
||||
{% if part.favorite %}
|
||||
<div class="mt-1">
|
||||
|
|
@ -79,4 +92,4 @@
|
|||
</a>
|
||||
</h6>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue