X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ab8ffbde2df33d9c699e029ba613d2b014ba44b8..82c3054bcdeb000aa9782da80d644070797b5cbe:/apps/wolnelektury_core/templates/superbase.html?ds=sidebyside diff --git a/apps/wolnelektury_core/templates/superbase.html b/apps/wolnelektury_core/templates/superbase.html index 9ee206f57..08d60a32a 100644 --- a/apps/wolnelektury_core/templates/superbase.html +++ b/apps/wolnelektury_core/templates/superbase.html @@ -1,8 +1,12 @@ +{% spaceless %} - {% load cache compressed i18n %} - {% load static from staticfiles %} - {% load catalogue_tags funding_tags reporting_stats sponsor_tags %} + {% load pipeline 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 %} @@ -11,62 +15,56 @@ - + {% block ogextra %}{% endblock %} - - {% block title %}{% trans "Wolne Lektury" %} :: - {% block titleextra %}{% endblock %}{% endblock %} + {% block title %}{% trans "Wolne Lektury" %} :: {% block titleextra %}{% endblock %}{% endblock %} - - {% compressed_css "main" %} + + {% stylesheet "main" %} {% block extrahead %} {% endblock %} {% block bodycontent %} - {% funding link=1 closeable=1 add_class="funding-top-header" %} + + {% if not funding_no_show_current %} + {% current_offer as current_offer %} + {{ current_offer.if }} + {% ssi_include 'funding_top_bar' pk=current_offer %} + {{ current_offer.endif }} + {% endif %} +

- {% if user.is_authenticated %} - {% trans "Welcome" %}, - + {% user_username as user_username %} + {% user_is_staff as user_is_staff %} + {{ user_username.if }}{% trans "Welcome" %}, - {{ user.username }} + {{ user_username }} {% trans "Password" %}
{% trans "E-mail" %}
{% trans "Social accounts" %}
-
- | {% trans "My shelf" %} - {% if user.is_staff %} - | {% trans "Administration" %} - {% endif %} - | {% trans "Logout" %} - {% else %} - - {% trans "Sign in" %} - / - - {% trans "Register" %} - {% endif %} +
| {% 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 }}

- {% cache 60 tagline LANGUAGE_CODE %} {% url 'book_list' as b %} {% url 'infopage' 'prawa' as r %} {% count_books book_count %} @@ -75,7 +73,6 @@ {% plural %} {{c}} free readings you have right to {% endblocktrans %} - {% endcache %}

@@ -95,17 +92,14 @@
⚐ - {% trans "Language versions" %} + {% trans "Language versions" %}
{% for lang in LANGUAGES %} - {% csrf_token %} + {% ssi_csrf_token %} - + {% endfor %}
@@ -124,24 +118,9 @@ @@ -160,17 +139,15 @@ - - {% compressed_js "base" %} + + {% javascript "base" %} - {{ piwik_tag|safe }} + {% tracking_code %} {% block extrabody %} {% endblock %} - + +{% endspaceless %}