Skip to content

Commit 0781908

Browse files
committed
feat: added image icon if category has image
1 parent c7d2154 commit 0781908

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

phpmyfaq/assets/templates/admin/content/category.overview.twig

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,18 @@
6666
{{ categoryInfo[key]['name'] | raw }}
6767

6868
{% if categoryInfo[key]['show_home'] == 1 %}
69-
<i class="bi bi-star" aria-hidden="true"></i>
69+
<span class="badge bg-warning">
70+
<i class="bi bi-star" aria-hidden="true"></i>
71+
</span>
72+
73+
{% endif %}
74+
75+
{% if categoryInfo[key]['image'] is not empty %}
76+
<span class="badge bg-warning">
77+
<i class="bi bi-image" aria-hidden="true"></i>
78+
</span>
7079
{% endif %}
80+
7181
</h6>
7282
{% else %}
7383
<a href="./category">{{ 'msgNewTranslationHeader' | translate }}</a>

0 commit comments

Comments
 (0)