spejstore-new/templates/widgets/categoryicon.html

6 lines
194 B
HTML

{% load static %}
{% if category and category.icon_id %}
<div class="containericon" title="{{ category.name }}"><img src="{% static '/icons/' %}{{ category.icon_id }}.svg" />
</div>
{% endif %}