add more icons

This commit is contained in:
2026-04-25 21:36:21 +03:00
parent 29f2318cba
commit b53556871f
5 changed files with 29 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
{% from 'common/macros.html' import timestamp, subheader, pager %}
{% from 'common/icons.html' import icn_locked, icn_stickied %}
{%- extends 'base.html' -%}
{%- block title -%}browsing topic {{topic.name}}{%- endblock -%}
{%- block content -%}
@@ -48,7 +49,14 @@
{%- for thread in threads -%}
<div class="topic-info plank">
<div class="title-container">
<span class="info thread-title-counter"><a href="{{url_for('threads.thread_by_id', thread_id=thread.id)}}">{{thread.title}}</a></span>
<span class="info thread-title-counter"><a href="{{url_for('threads.thread_by_id', thread_id=thread.id)}}">{{thread.title}}</a>
</span>
{%- if thread.is_locked -%}
{{icn_locked(24)}}
{%- endif -%}
{%- if thread.is_stickied -%}
{{icn_stickied(24)}}
{%- endif -%}
<ul class="horizontal"></ul>
{%- if thread.posts_count / 10 > 1 -%}
{{pager(0, (((thread.posts_count / 10) | round(0, 'ceil') )| int), 'flex-last', url=url_for('threads.thread_by_id', thread_id=thread.id))}}