X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/075fb07f19c2f20cd3b6818b973e7aebebdacc9f..3badd77f743883992829a1174eef7c8d5e851766:/wolnelektury/templates/base.html diff --git a/wolnelektury/templates/base.html b/wolnelektury/templates/base.html index 48f13adb2..8674ee16f 100644 --- a/wolnelektury/templates/base.html +++ b/wolnelektury/templates/base.html @@ -1,8 +1,8 @@ - {% load i18n compressed catalogue_tags sponsor_tags %} - {% load reporting_stats %} + {% load cache compressed i18n %} + {% load catalogue_tags reporting_stats sponsor_tags %} @@ -31,25 +31,27 @@
- {% count_books book_count %} - {% url book_list as b %} - {% url book_list as r %} - {% blocktrans count book_count as c %} - {{c}} free reading you have right to - {% plural %} - {{c}} free readings you have right to - {% endblocktrans %} + {% cache 300 tagline %} + {% url book_list as b %} + {% url book_list as r %} + {% count_books book_count %} + {% blocktrans count book_count as c %} + {{c}} free reading you have right to + {% plural %} + {{c}} free readings you have right to + {% endblocktrans %} + {% endcache %}

{% if user.is_authenticated %} {% trans "Welcome" %}, {{ user.username }} - | {% trans "Your shelves" %} + | {% trans "My shelf" %} {% if user.is_staff %} | {% trans "Administration" %} {% endif %} - | {% trans "Logout" %} + | {% trans "Logout" %} {% else %} @@ -75,16 +77,17 @@

- + {{search_form.q}} + +
-
@@ -131,9 +134,11 @@
+ {# end main-content #}
- {# end main-content #} {# template #}