summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2017-10-13 13:28:41 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2017-10-16 08:05:08 (GMT)
commitabc2dc9f8e08563b92583bf8366e4792ef31515e (patch)
treefc83c248920f68d190efbadac111aaeb5bd88c70
parentacb91985e36d7d56c05f6845ecb62ed78aeff471 (diff)
downloadvincennes-2014-abc2dc9f8e08563b92583bf8366e4792ef31515e.zip
vincennes-2014-abc2dc9f8e08563b92583bf8366e4792ef31515e.tar.gz
vincennes-2014-abc2dc9f8e08563b92583bf8366e4792ef31515e.tar.bz2
templates: declare placeholder attributes (#19342)v2.23
-rw-r--r--templates/combo/page_template.html6
-rw-r--r--templates/combo/page_template_skeleton.html5
2 files changed, 7 insertions, 4 deletions
diff --git a/templates/combo/page_template.html b/templates/combo/page_template.html
index 1c90b73..07a6e46 100644
--- a/templates/combo/page_template.html
+++ b/templates/combo/page_template.html
@@ -54,13 +54,15 @@ page-{{ page.slug }} {% if pages %}section-{{pages.0.slug}}{% endif %}
</ol>
{% block combo-content %}
{% block page-content %}
- {% placeholder "content" %}
+ {% trans "Content" as name %}
+ {% placeholder "content" name=name %}
{% endblock %}
{% endblock %}
{% endblock %}
{% block footer %}
- {% placeholder "footer" %}
+ {% trans "Footer" as name %}
+ {% placeholder "footer" name=name %}
{% endblock %}
{% block user-name %}
diff --git a/templates/combo/page_template_skeleton.html b/templates/combo/page_template_skeleton.html
index d12dc6c..78302b8 100644
--- a/templates/combo/page_template_skeleton.html
+++ b/templates/combo/page_template_skeleton.html
@@ -1,5 +1,5 @@
{% extends 'combo/page_template.html' %}
-{% load combo %}
+{% load combo i18n %}
{% block user-name %}
{% skeleton_extra_placeholder user-name %}
@@ -23,7 +23,8 @@
</ol>
{% block combo-content %}
{% block page-content %}
- {% placeholder "content" %}
+ {% trans "Content" as name %}
+ {% placeholder "content" name=name %}
{% endblock %}
{% endblock %}
{% endblock %}