From f37be35648ff8fe5434a01cf929ce2fb1d6bdf98 Mon Sep 17 00:00:00 2001 From: Yusur Princeps Date: Fri, 5 Sep 2025 23:56:22 +0200 Subject: [PATCH] fix bugs in templates --- salvi/templates/base.html | 3 +-- salvi/templates/listtag.html | 4 ++-- salvi/templates/macros/nl.html | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/salvi/templates/base.html b/salvi/templates/base.html index 998968e..9f3deb1 100644 --- a/salvi/templates/base.html +++ b/salvi/templates/base.html @@ -1,8 +1,7 @@ - - + {% block title %} {{ app_name }} diff --git a/salvi/templates/listtag.html b/salvi/templates/listtag.html index bb0c26a..a69a93b 100644 --- a/salvi/templates/listtag.html +++ b/salvi/templates/listtag.html @@ -10,8 +10,8 @@
{{ T('notes-tagged') }}
- {% if total_count > 0 %} - {{ nl_list(tagged_notes, page_n=page_n, total_count=total_count, hl_tags=(tagname,), other_url='tags/' + tagname) }} + {% if tagged_notes.total > 0 %} + {{ nl_list(tagged_notes, hl_tags=(tagname,), other_url='tags/' + tagname) }} {% else %}

{{ T('notes-tagged-empty') }}

{% endif %} diff --git a/salvi/templates/macros/nl.html b/salvi/templates/macros/nl.html index e448d66..a4355fd 100644 --- a/salvi/templates/macros/nl.html +++ b/salvi/templates/macros/nl.html @@ -16,7 +16,7 @@ {% if not is_main %}

Showing results {{ page_n * 20 - 19 }} to {{ min(page_n * 20, total_count) }} - of {{ total_count }} total.

+ of {{ l.total }} total.

{% endif %}