Show part tags and some other status infos in part info page sidebar

This commit is contained in:
Jan Böhmer 2019-08-15 22:59:34 +02:00
parent fd6961e2f3
commit aafbda3376
2 changed files with 37 additions and 145 deletions

View file

@ -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 %}