X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d157af1061e9f03f59ea909d7d25f4a0b41f1c0e..c3abe4b834586c564bf87e76902e9344e6ecddfa:/apps/wolnelektury_core/templates/superbase.html diff --git a/apps/wolnelektury_core/templates/superbase.html b/apps/wolnelektury_core/templates/superbase.html index b0067acc7..c3259a30b 100644 --- a/apps/wolnelektury_core/templates/superbase.html +++ b/apps/wolnelektury_core/templates/superbase.html @@ -1,33 +1,27 @@ - - {% load cache compressed i18n %} - {% load static from staticfiles %} - {% load catalogue_tags reporting_stats sponsor_tags %} +{% spaceless %} + + {% load compressed i18n %} + {% load static from staticfiles %} + {% load catalogue_tags funding_tags reporting_stats %} + {% load piwik_tags %} + {% load ssi_include ssi_csrf_token from ssify %} + {% load user_username user_is_staff from common_tags %}
+ - + {% block ogextra %}{% endblock %} - - -+ {% user_username as user_username %} + {% user_is_staff as user_is_staff %} + {{ user_username.if }}{% trans "Welcome" %}, + + {{ user_username }} + + + | {% trans "My shelf" %} + {{ user_username.endif }} + {{ user_is_staff.if }} | {% trans "Administration" %} + {{ user_is_staff.endif }} + {{ user_username.if }} | {% trans "Logout" %} + {{ user_username.else }} + {% trans "Sign in" %} / {% trans "Register" %} + {{ user_username.endif }} +
-+ {% url 'book_list' as b %} + {% url 'infopage' 'prawa' 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 "My shelf" %} - {% if user.is_staff %} - | {% trans "Administration" %} - {% endif %} - | {% trans "Logout" %} - {% else %} - - {% trans "Sign in" %} - / - - {% trans "Register" %} - {% endif %}
- - - -