mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-20 02:45:01 +02:00
Show part tags and some other status infos in part info page sidebar
This commit is contained in:
parent
fd6961e2f3
commit
aafbda3376
2 changed files with 37 additions and 145 deletions
|
@ -46,4 +46,10 @@
|
|||
{% elseif not attachment_helper.fileExisting(attachment) %}
|
||||
<i class="{{ class }} fa-exclamation-triangle text-danger"></i>
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro string_to_tags(string, class="badge badge-info") %}
|
||||
{% for tag in string|split(',') %}
|
||||
<a href="#" class="{{ class }}" >{{ tag | trim }}</a>
|
||||
{% endfor %}
|
||||
{% endmacro %}
|
Loading…
Add table
Add a link
Reference in a new issue