mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
fixed category icon
This commit is contained in:
parent
67b331e4f7
commit
1f274559f4
@ -5,7 +5,7 @@
|
||||
<li>
|
||||
<div class="d-flex">
|
||||
{% if (not categoryId) or (loop.first and categoryId) %}
|
||||
{% set categoryIcon = (maincat.icon) ? maincat.icon : img('visiosoft.module.advs::images/listing/sample-cat-icon.svg').url %}
|
||||
{% set categoryIcon = (maincat.icon.value) ? maincat.icon.value : img('visiosoft.module.advs::images/listing/sample-cat-icon.svg').url %}
|
||||
<img src="{{ categoryIcon }}" alt="{{ main_category.name }}" class="img-responsive">
|
||||
{% endif %}
|
||||
<div class="{{ not loop.first and categoryId ? 'sub-cat' : 'ml-2' }}" style="{{ not loop.first and categoryId ? 'padding-left: ' ~ (loop.index - 1) * 0.5 ~ 'rem;' }}">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user