Properly call `super()` in overridden blocks in builtin templates,

even if the blocks are empty in the builtin layout.html they may contain
something in an overridden one.
This commit is contained in:
Georg Brandl 2008-09-06 16:38:37 +00:00
parent afd4828932
commit 52575f4b10
4 changed files with 4 additions and 0 deletions

View File

@ -42,4 +42,5 @@
{%- endfor %}</p>
<p><a href="{{ pathto('genindex-all') }}"><strong>{{ _('Full index on one page') }}</strong></a></p>
{{ super() }}
{% endblock %}

View File

@ -26,4 +26,5 @@
<p><a href="{{ pathto('genindex-all') }}"><strong>{{ _('Full index on one page') }}</strong></a></p>
{% endif %}
{{ super() }}
{% endblock %}

View File

@ -53,4 +53,5 @@
<p><a href="{{ pathto('genindex-all') }}"><strong>{{ _('Full index on one page') }}</strong></a></p>
{% endif %}
{{ super() }}
{% endblock %}

View File

@ -1,6 +1,7 @@
{% extends "layout.html" %}
{% set title = _('Global Module Index') %}
{% block extrahead %}
{{ super() }}
{% if builder != 'htmlhelp' and collapse_modindex %}
<script type="text/javascript">
DOCUMENTATION_OPTIONS.COLLAPSE_MODINDEX = true;