fnp
/
django-migdal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f41fb09
)
fix template block syntax
author
Jan Szejko
<janek37@gmail.com>
Tue, 8 Nov 2016 15:32:41 +0000
(16:32 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Tue, 8 Nov 2016 15:32:41 +0000
(16:32 +0100)
migdal/templates/comments/form.html
patch
|
blob
|
history
migdal/templates/comments/migdal/entry/preview.html
patch
|
blob
|
history
migdal/templates/migdal/entry/entry_detail.html
patch
|
blob
|
history
migdal/templates/migdal/entry/entry_list.html
patch
|
blob
|
history
migdal/templates/migdal/entry/submit.html
patch
|
blob
|
history
migdal/templates/migdal/entry/submit_thanks.html
patch
|
blob
|
history
migdal/templates/search/search.html
patch
|
blob
|
history
diff --git
a/migdal/templates/comments/form.html
b/migdal/templates/comments/form.html
index
341750f
..
cd51760
100644
(file)
--- 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 %}
<tr
{% for field in form %}
{% if not field.is_hidden %}
<tr
- {% if
equal field.name "honeypot" %} style="display:none;"{% endifequal
%}>
+ {% if
field.name = "honeypot" %} style="display:none;"{% endif
%}>
<th>{{ field.label_tag }}
</th><td>
{% if field.errors %}<p class="error">{{ field.errors }}</p>{% endif %}
<th>{{ field.label_tag }}
</th><td>
{% if field.errors %}<p class="error">{{ field.errors }}</p>{% endif %}
diff --git
a/migdal/templates/comments/migdal/entry/preview.html
b/migdal/templates/comments/migdal/entry/preview.html
index
3560b01
..
43ac57a
100644
(file)
--- 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 %}
{% load migdal_tags fnp_markup %}
-{% block
"body"
%}
+{% block
body
%}
<div class="entry entry-detail entry-{{ entry.type }}">
<div class="entry-wrapped">
<div class="entry entry-detail entry-{{ entry.type }}">
<div class="entry-wrapped">
diff --git
a/migdal/templates/migdal/entry/entry_detail.html
b/migdal/templates/migdal/entry/entry_detail.html
index
148e647
..
5d7da3c
100644
(file)
--- 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 %}
{% 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 %}
{% if entry.image %}
{{ entry.image.url|build_absolute_uri:request }}
{% else %}
@@
-15,12
+15,12
@@
{% endif %}
{% endspaceless %}{% endblock %}
{% endif %}
{% endspaceless %}{% endblock %}
-{% block
"headextra"
%}
+{% block
headextra
%}
{% if entry.canonical_url %}<link rel="canonical" href="{{ entry.canonical_url }}"/>{% endif %}
{% endblock %}
{% if entry.canonical_url %}<link rel="canonical" href="{{ entry.canonical_url }}"/>{% endif %}
{% endblock %}
-{% block
"body"
%}
+{% block
body
%}
{% if not entry.published %}
<p class="warning">{% trans "This entry hasn't been published yet." %}</p>
{% if not entry.published %}
<p class="warning">{% trans "This entry hasn't been published yet." %}</p>
diff --git
a/migdal/templates/migdal/entry/entry_list.html
b/migdal/templates/migdal/entry/entry_list.html
index
0dda2e8
..
8657121
100644
(file)
--- a/
migdal/templates/migdal/entry/entry_list.html
+++ b/
migdal/templates/migdal/entry/entry_list.html
@@
-5,7
+5,7
@@
{% load migdal_tags %}
{% load migdal_tags %}
-{% block
"body"
%}
+{% block
body
%}
{% if category %}
<h1>{% trans "Category" %}: {{ category }}
{% if category %}
<h1>{% trans "Category" %}: {{ category }}
diff --git
a/migdal/templates/migdal/entry/submit.html
b/migdal/templates/migdal/entry/submit.html
index
cc376d7
..
be035a7
100644
(file)
--- a/
migdal/templates/migdal/entry/submit.html
+++ b/
migdal/templates/migdal/entry/submit.html
@@
-2,7
+2,7
@@
{% load url from future %}
{% load i18n %}
{% load url from future %}
{% load i18n %}
-{% block
"body"
%}
+{% block
body
%}
<h1>{% trans "Submit new story" %}</h1>
<h1>{% trans "Submit new story" %}</h1>
diff --git
a/migdal/templates/migdal/entry/submit_thanks.html
b/migdal/templates/migdal/entry/submit_thanks.html
index
99cecaf
..
55f216b
100644
(file)
--- 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 %}
{% extends "base.html" %}
{% load i18n %}
-{% block
"body"
%}
+{% block
body
%}
<h1>{% trans "Thanks for submitting" %}</h1>
<h1>{% trans "Thanks for submitting" %}</h1>
diff --git
a/migdal/templates/search/search.html
b/migdal/templates/search/search.html
index
31be738
..
c91c7c3
100644
(file)
--- a/
migdal/templates/search/search.html
+++ b/
migdal/templates/search/search.html
@@
-5,7
+5,7
@@
{#% load events_tags %#}
{#% load events_tags %#}
-{% block
"body"
%}
+{% block
body
%}
<h1>{% trans "Search results" %}</h1>
{% for result in page.object_list %}
<h1>{% trans "Search results" %}</h1>
{% for result in page.object_list %}
@@
-29,4
+29,4
@@
{% endif %}
{% endif %}
{% endif %}
{% endif %}
-{% endblock
"body"
%}
+{% endblock
body
%}