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 %}