From: Jan Szejko Date: Tue, 8 Nov 2016 15:32:41 +0000 (+0100) Subject: fix template block syntax X-Git-Tag: 0.5~1 X-Git-Url: https://git.mdrn.pl/django-migdal.git/commitdiff_plain/2c99167266c1be5545880dc2ee2b1a0c741fddc7?ds=sidebyside fix template block syntax --- diff --git a/migdal/templates/comments/form.html b/migdal/templates/comments/form.html index 341750f..cd51760 100644 --- a/migdal/templates/comments/form.html +++ b/migdal/templates/comments/form.html @@ -12,7 +12,7 @@ {% for field in form %} {% if not field.is_hidden %} + {% if field.name = "honeypot" %} style="display:none;"{% endif %}> {{ field.label_tag }} {% if field.errors %}

{{ field.errors }}

{% endif %} diff --git a/migdal/templates/comments/migdal/entry/preview.html b/migdal/templates/comments/migdal/entry/preview.html index 3560b01..43ac57a 100644 --- a/migdal/templates/comments/migdal/entry/preview.html +++ b/migdal/templates/comments/migdal/entry/preview.html @@ -3,7 +3,7 @@ {% load migdal_tags fnp_markup %} -{% block "body" %} +{% block body %}
diff --git a/migdal/templates/migdal/entry/entry_detail.html b/migdal/templates/migdal/entry/entry_detail.html index 148e647..5d7da3c 100644 --- a/migdal/templates/migdal/entry/entry_detail.html +++ b/migdal/templates/migdal/entry/entry_detail.html @@ -3,11 +3,11 @@ {% load fnp_common migdal_tags fnp_share %} -{% block "titleextra" %}{{ entry.title }} :: {% endblock %} -{% block "ogtitle" %}{{ entry.title }}{% endblock %} -{% block "ogtype" %}article{% endblock %} -{% block "ogdescription"%}{{ entry.lead|striptags|truncatewords:16 }}{% endblock %} -{% block "ogimage" %}{% spaceless %} +{% block titleextra %}{{ entry.title }} :: {% endblock %} +{% block ogtitle %}{{ entry.title }}{% endblock %} +{% block ogtype %}article{% endblock %} +{% block ogdescription %}{{ entry.lead|striptags|truncatewords:16 }}{% endblock %} +{% block ogimage %}{% spaceless %} {% if entry.image %} {{ entry.image.url|build_absolute_uri:request }} {% else %} @@ -15,12 +15,12 @@ {% endif %} {% endspaceless %}{% endblock %} -{% block "headextra" %} +{% block headextra %} {% if entry.canonical_url %}{% endif %} {% endblock %} -{% block "body" %} +{% block body %} {% if not entry.published %}

{% trans "This entry hasn't been published yet." %}

diff --git a/migdal/templates/migdal/entry/entry_list.html b/migdal/templates/migdal/entry/entry_list.html index 0dda2e8..8657121 100644 --- a/migdal/templates/migdal/entry/entry_list.html +++ b/migdal/templates/migdal/entry/entry_list.html @@ -5,7 +5,7 @@ {% load migdal_tags %} -{% block "body" %} +{% block body %} {% if category %}

{% trans "Category" %}: {{ category }} diff --git a/migdal/templates/migdal/entry/submit.html b/migdal/templates/migdal/entry/submit.html index cc376d7..be035a7 100644 --- a/migdal/templates/migdal/entry/submit.html +++ b/migdal/templates/migdal/entry/submit.html @@ -2,7 +2,7 @@ {% load url from future %} {% load i18n %} -{% block "body" %} +{% block body %}

{% trans "Submit new story" %}

diff --git a/migdal/templates/migdal/entry/submit_thanks.html b/migdal/templates/migdal/entry/submit_thanks.html index 99cecaf..55f216b 100644 --- a/migdal/templates/migdal/entry/submit_thanks.html +++ b/migdal/templates/migdal/entry/submit_thanks.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% load i18n %} -{% block "body" %} +{% block body %}

{% trans "Thanks for submitting" %}

diff --git a/migdal/templates/search/search.html b/migdal/templates/search/search.html index 31be738..c91c7c3 100644 --- a/migdal/templates/search/search.html +++ b/migdal/templates/search/search.html @@ -5,7 +5,7 @@ {#% load events_tags %#} -{% block "body" %} +{% block body %}

{% trans "Search results" %}

{% for result in page.object_list %} @@ -29,4 +29,4 @@ {% endif %} {% endif %} -{% endblock "body" %} +{% endblock body %}