Commits

David Chambers committed 87e278a

Replaced ugly "heading" settings with elegant template blocks.

Comments (0)

Files changed (2)

settings/defaults.py

 SUBSCRIPTIONS = False
 
 TAGS_PAGE = True
-
-# headings
-COMMENTS_HEADING_TAG = 'h2'
-COMMENTS_HEADING_TEXT = 'Comments'
-RESPOND_HEADING_TAG = 'h3'
-RESPOND_HEADING_TEXT = 'Respond'

templates/document.dhtml

 						</ol>
 					</footer>{% endif %}{% endif %}{% endwith %}{% endwith %}
 {% block comments %}{% if comments or new_comment %}
-					<{{ COMMENTS_HEADING_TAG }} id="comments">{{ COMMENTS_HEADING_TEXT }}</{{ COMMENTS_HEADING_TAG }}>{% for comment in comments %}{% include 'comment.dhtml' %}{% endfor %}{% if new_comment %}{{ new_comment }}
+					{% block comments_heading %}<h2 id="comments">Comments</h2>{% endblock %}{% for comment in comments %}{% include 'comment.dhtml' %}{% endfor %}{% if new_comment %}{{ new_comment }}
 					<p>Your comment is awaiting moderation.</p>{% endif %}{% endif %}{% if thread.allow_comments %}
-					<{{ RESPOND_HEADING_TAG }} id="respond">{{ RESPOND_HEADING_TEXT }}</{{ RESPOND_HEADING_TAG }}>
+					{% block respond_heading %}<h3 id="respond">Respond</h3>{% endblock %}
 					{{ form.non_field_errors }}
 					<form id="comment" method="post">{% csrf_token %}
 						<fieldset>