{% load i18n %}
-{% load ssi_csrf_token from ssify %}
<h1>{{ title }}</h1>
<form action="{% if action_url %}{% url action_url %}{% else %}{{ action }}{% endif %}{% if action_query %}?{{ action_query }}{% endif %}" method="post" accept-charset="utf-8"
class="cuteform{% if placeholdize %} hidelabels{% endif %}">
- {% ssi_csrf_token %}
+ {% csrf_token %}
{% if honeypot %}
{% load honeypot %}
{% render_honeypot_field %}
{% extends "base/base.html" %}
{% load i18n %}
{% load common_tags catalogue_tags %}
-{% load ssify %}
{% load build_absolute_uri from fnp_common %}
{% load cache %}
{% cache 86400 book_mini_box rel.pk %}
{% include 'catalogue/book_mini_box.html' with book=rel %}
{% endcache %}
- {#% ssi_include 'catalogue_book_mini' pk=rel.pk %#}
{% endfor %}
</section>
{% endif %}
{% for author in book.authors %}
<div class="white-box">
<a style="display:block" href="{{ author.get_absolute_url }}">
- {% ssi_include 'catalogue_tag_box' pk=author.pk %}
+ {% cache 86400 catalogue_tag_box rel.pk %}
+ {% include 'catalogue/tag_box.html' with tag=author %}
+ {% endcache %}
</a>
</div>
{% endfor %}
{% cache 86400 book_mini_box other_version.pk %}
{% include 'catalogue/book_mini_box.html' with book=other_version no_link=True %}
{% endcache %}
- {#% ssi_include 'catalogue_book_mini_nolink' pk=other_version.pk %#}
</a>
</li>
{% endfor %}
{% load i18n %}
{% load honeypot %}
-{% load ssi_csrf_token from ssify %}
{% load ajaxable_tags %}
<h1>{% trans "Download custom PDF" %}</h1>
<form id='custom-pdf-form' action="" method="post" accept-charset="utf-8" class="cuteform">
- {% ssi_csrf_token %}
+ {% csrf_token %}
{% render_honeypot_field %}
<ol>
{{ form.nofootnotes|pretty_checkbox }}
{% cache 86400 book_mini_box book.pk %}
{% include 'catalogue/book_mini_box.html' %}
{% endcache %}
- {#% ssi_include 'catalogue_book_mini' pk=book.pk %#}
{% endfor %}
{% if random %}
{% ssi_include 'picture_mini' pk=random_pic_pk %}
{{ random_pic_pk.endif }}
{% endif %}
-{% endspaceless %}
\ No newline at end of file
+{% endspaceless %}
-{% load ssify %}
{% load likes_book from social_tags %}
{% likes_book book.pk as likes %}
<div class="star {{ likes.if }}{{ likes.else }}un{{ likes.endif }}like">
<form id="social-like-book-{{ book.slug }}"
data-callback='social-like-book' method='post'
class='ajax-form' action='{% url "social_like_book" book.slug %}'>
- {% ssi_csrf_token %}
+ {% csrf_token %}
<button type='submit'>☆</button>
</form>
</div>
{% extends "base/base.html" %}
{% load i18n %}
+{% load cache %}
{% load plain_list from catalogue_tags %}
-{% load ssi_include from ssify %}
{% block titleextra %}{{ title }}{% endblock %}
{% for tag in best %}
<a class="tag-box" href="{{ tag.get_absolute_url }}">
- {% ssi_include "catalogue_tag_box" pk=tag.pk %}
+ {% cache 86400 catalogue_tag_box rel.pk %}
+ {% include 'catalogue/tag_box.html' %}
+ {% endcache %}
</a>
{% endfor %}
{% extends form.base_template|default:"base/base.html" %}
{% load chunks %}
{% load honeypot %}
-{% load ssi_csrf_token from ssify %}
{% block title %}{{ form.form_title }}{% endblock %}
</div>
<form method="POST" action="." enctype="multipart/form-data" class="submit-form">
- {% ssi_csrf_token %}
+ {% csrf_token %}
{% render_honeypot_field %}
{% block form %}
<table>
{% extends "base/base.html" %}
{% load i18n %}
-{% load ssify %}
{% load honeypot %}
{% load ajaxable_tags %}
{% block body %}
<h1>{{ page_title }}</h1>
<form id="subscribe-form" action="" method="post" accept-charset="utf-8" class="cuteform">
- {% ssi_csrf_token %}
+ {% csrf_token %}
{% render_honeypot_field %}
<ol>
<li>{{ form.email|pretty_field }}</li>
<li><input type="submit" value="{% trans "Subscribe" %}"/></li>
</ol>
</form>
-{% endblock %}
\ No newline at end of file
+{% endblock %}
{% extends "base/base.html" %}
{% load i18n %}
-{% load ssify %}
{% load honeypot %}
{% block body %}
<h1>{{ page_title }}</h1>
<form id="unsubscribe-form" action="" method="post" accept-charset="utf-8" class="cuteform">
- {% ssi_csrf_token %}
+ {% csrf_token %}
{% render_honeypot_field %}
<ol>
{{ form.as_ul }}
<li><input type="submit" value="{% trans "Unsubscribe" %}"/></li>
</ol>
</form>
-{% endblock %}
\ No newline at end of file
+{% endblock %}
{% load i18n %}
-{% load ssi_csrf_token from ssify %}
{% if poll %}
{% if voted_already %}
{% else %}
<div class="poll">
<p>{{poll.question}}</p>
- <form action="{{poll.get_absolute_url}}" method="post">{% ssi_csrf_token %}
+ <form action="{{poll.get_absolute_url}}" method="post">{% csrf_token %}
{{ form.vote }}
<input type="submit" value="{% trans "Submit" %}" />
</form>
</div>
{% endif %}
-{% endif %}
\ No newline at end of file
+{% endif %}
{% load i18n %}
-{% load ssi_csrf_token from ssify %}
<h1>{{ title }}</h1>
<form action="{% url 'social_unlike_book' view_kwargs.slug %}" method="post" accept-charset="utf-8"
class="cuteform{% if placeholdize %} hidelabels{% endif %}">
- {% ssi_csrf_token %}
+ {% csrf_token %}
<input type="submit" value="{% trans "Remove from my shelf" %}"/>
</form>
<form action="{{ request.get_full_path }}" method="post" accept-charset="utf-8"
class="cuteform{% if placeholdize %} hidelabels{% endif %}">
- {% ssi_csrf_token %}
+ {% csrf_token %}
<ol>
<div id="id___all__"></div>
{{ form.as_ul }}
{% load i18n %}
-{% load ssi_csrf_token from ssify %}
<h1>{{ title }}</h1>
<form action="{{ request.get_full_path }}" method="post" accept-charset="utf-8"
class="cuteform{% if placeholdize %} hidelabels{% endif %}">
- {% ssi_csrf_token %}
+ {% csrf_token %}
<ol>
<div id="id_{% if form_prefix %}{{ form_prefix }}-{% endif %}__all__"></div>
{{ form.as_ul }}
{% extends "auth/login.html" %}
{% load i18n %}
{% load honeypot %}
-{% load ssi_csrf_token from ssify %}
{% block extra %}
{{ block.super }}
{% load static from staticfiles %}
{% load catalogue_tags funding_tags reporting_stats %}
{% load piwik_tags %}
- {% load ssi_include ssi_csrf_token from ssify %}
+ {% load ssi_include from ssify %}
{% load user_username user_is_staff from common_tags %}
{% load cache %}
{% get_current_language as LANGUAGE_CODE %}
<div id="lang-menu-items">
{% for lang in LANGUAGES %}
<form action="{% url 'set_language' %}" method="post">
- {% ssi_csrf_token %}
+ {% csrf_token %}
<input type="hidden" name="language" value="{{ lang.0 }}"/>
<button type="submit" lang="{{ lang.0 }}"
class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %}">{{ lang.1 }}</button>
{% load static from staticfiles %}
{% load catalogue_tags funding_tags reporting_stats %}
{% load piwik_tags %}
- {% load ssi_include ssi_csrf_token from ssify %}
+ {% load ssi_include from ssify %}
{% load user_username user_is_staff from common_tags %}
{% load cache %}
{% get_current_language as LANGUAGE_CODE %}
<div id="lang-menu-items">
{% for lang in LANGUAGES %}
<form action="{% url 'set_language' %}" method="post">
- {% ssi_csrf_token %}
+ {% csrf_token %}
<input type="hidden" name="language" value="{{ lang.0 }}"/>
<button type="submit" lang="{{ lang.0 }}"
class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %}">{{ lang.1 }}</button>
<a class="more" href="{% url 'theme_catalogue' %}">{% trans "See motifs catalog" %}</a>
</section>
- {% comment %}
- <section class="tag-box-section">
- <h1>Autorzy</h1>
- <a class="tag-box" href="{{ author.get_absolute_url }}">
- {% ssi_include "catalogue_tag_box" pk=author.pk %}
- </a>
- <a class="more" href="{% url 'author_catalogue' %}">Zobacz katalog autorów</a>
- </section>
-
- <section class="tag-box-section">
- <h1>Gatunki</h1>
- <a class="tag-box" href="{{ genre.get_absolute_url }}">
- {% ssi_include "catalogue_tag_box" pk=genre.pk %}
- </a>
- <a class="more" href="{% url 'genre_catalogue' %}">Zobacz katalog gatunków</a>
- </section>
-
- <section class="tag-box-section">
- <h1>Rodzaje</h1>
- <a class="tag-box" href="{{ kind.get_absolute_url }}">
- {% ssi_include "catalogue_tag_box" pk=kind.pk %}
- </a>
- <a class="more" href="{% url 'kind_catalogue' %}">Zobacz katalog rodzajów</a>
- </section>
-
- <section class="tag-box-section">
- <h1>Epoki</h1>
- <a class="tag-box" href="{{ epoch.get_absolute_url }}">
- {% ssi_include "catalogue_tag_box" pk=epoch.pk %}
- </a>
- <a class="more" href="{% url 'epoch_catalogue' %}">Zobacz katalog epok</a>
- </section>
- {% endcomment %}
-
{% if collection %}
<section>
<h1>{% trans "Collections" %}</h1>