fix bugs in templates
This commit is contained in:
parent
899bf78522
commit
f37be35648
3 changed files with 5 additions and 6 deletions
|
|
@ -1,8 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ g.lang }}">
|
<html lang="{{ g.lang }}">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
{% block title %}
|
{% block title %}
|
||||||
<title>{{ app_name }}</title>
|
<title>{{ app_name }}</title>
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@
|
||||||
<div class="preview-subtitle">{{ T('notes-tagged') }}</div>
|
<div class="preview-subtitle">{{ T('notes-tagged') }}</div>
|
||||||
|
|
||||||
<div class="inner-content">
|
<div class="inner-content">
|
||||||
{% if total_count > 0 %}
|
{% if tagged_notes.total > 0 %}
|
||||||
{{ nl_list(tagged_notes, page_n=page_n, total_count=total_count, hl_tags=(tagname,), other_url='tags/' + tagname) }}
|
{{ nl_list(tagged_notes, hl_tags=(tagname,), other_url='tags/' + tagname) }}
|
||||||
{% else %}
|
{% else %}
|
||||||
<p class="nl-placeholder">{{ T('notes-tagged-empty') }}</p>
|
<p class="nl-placeholder">{{ T('notes-tagged-empty') }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
{% if not is_main %}
|
{% if not is_main %}
|
||||||
<p class="nl-pagination">
|
<p class="nl-pagination">
|
||||||
Showing results <strong>{{ page_n * 20 - 19 }}</strong> to <strong>{{ min(page_n * 20, total_count) }}</strong>
|
Showing results <strong>{{ page_n * 20 - 19 }}</strong> to <strong>{{ min(page_n * 20, total_count) }}</strong>
|
||||||
of <strong>{{ total_count }}</strong> total.</p>
|
of <strong>{{ l.total }}</strong> total.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<ul class="nl-list">
|
<ul class="nl-list">
|
||||||
|
|
@ -62,7 +62,7 @@
|
||||||
|
|
||||||
{% if is_main %}
|
{% if is_main %}
|
||||||
<li class="nl-next"><a href="/{{ other_url }}/">{{ T('show-all') }}</a></li>
|
<li class="nl-next"><a href="/{{ other_url }}/">{{ T('show-all') }}</a></li>
|
||||||
{% elif page_n <= (total_count - 1) // 20 %}
|
{% elif page_n <= (l.total - 1) // 20 %}
|
||||||
<li class="nl-next"><a href="/{{ other_url }}/?page={{ page_n + 1 }}">Next page »</a></li>
|
<li class="nl-next"><a href="/{{ other_url }}/?page={{ page_n + 1 }}">Next page »</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue