add unread count to thread title in topic view

This commit is contained in:
2026-05-20 14:21:33 +03:00
parent daed16f099
commit 5db63d6907
2 changed files with 18 additions and 3 deletions

View File

@@ -49,7 +49,13 @@
{%- 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 class="info thread-title-counter">
<ul class="horizontal">
<li><a href="{{url_for('threads.thread_by_id', thread_id=thread.id)}}">{{thread.title}}</a></li>
{%- if subscriptions[thread.id] -%}
<li>({{subscriptions[thread.id]}} unread)</li>
{%- endif -%}
</ul>
</span>
<ul class="horizontal">
{%- if thread.is_locked -%}