make icons macros instead of svg files

This commit is contained in:
2025-11-21 05:38:51 +03:00
parent 95decd9a56
commit f8101e57c1
15 changed files with 71 additions and 55 deletions

View File

@@ -1,4 +1,5 @@
{% from 'common/macros.html' import pager, timestamp %}
{% from 'common/icons.html' import icn_bookmark, icn_lock, icn_sticky %}
{% extends "base.html" %}
{% block title %}browsing topic {{ topic['name'] }}{% endblock %}
{% block content %}
@@ -33,7 +34,7 @@
<div class="thread">
<div class="thread-sticky-container contain-svg">
{% if thread['is_stickied'] %}
<img src="/static/misc/sticky.svg">
{{ icn_sticky() }}
<i>Stickied</i>
{% endif %}
</div>
@@ -56,7 +57,7 @@
</div>
<div class="thread-locked-container contain-svg">
{% if thread['is_locked'] %}
<img src="/static/misc/lock.svg">
{{ icn_lock() }}
<i>Locked</i>
{% endif %}
</div>