Skip to content

Commit c577200

Browse files
committed
Fixed id attribute generation in the admin docs page. Patch from simeon.
Fixed #3695. Thanks. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13728 bcc190cf-cafb-0310-a4f2-bffc1f526a37
1 parent 7543eb9 commit c577200

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

django/contrib/admindocs/templates/admin_doc/template_filter_index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h1>Template filter documentation</h1>
1515
<h2>{% firstof library.grouper "Built-in filters" %}</h2>
1616
{% if library.grouper %}<p class="small quiet">To use these filters, put <code>{% templatetag openblock %} load {{ library.grouper }} {% templatetag closeblock %}</code> in your template before using the filter.</p><hr />{% endif %}
1717
{% for filter in library.list|dictsort:"name" %}
18-
<h3 id="{{ filter.name }}">{{ filter.name }}</h3>
18+
<h3 id="{{ library.grouper|default_if_none:"built_in" }}-{{ filter.name }}">{{ filter.name }}</h3>
1919
<p>{{ filter.title }}</p>
2020
<p>{{ filter.body }}</p>
2121
{% if not forloop.last %}<hr />{% endif %}
@@ -36,7 +36,7 @@ <h3 id="{{ filter.name }}">{{ filter.name }}</h3>
3636
<h2>{% firstof library.grouper "Built-in filters" %}</h2>
3737
<ul>
3838
{% for filter in library.list|dictsort:"name" %}
39-
<li><a href="#{{ filter.name }}">{{ filter.name }}</a></li>
39+
<li><a href="#{{ library.grouper|default_if_none:"built_in" }}-{{ filter.name }}">{{ filter.name }}</a></li>
4040
{% endfor %}
4141
</ul>
4242
</div>

django/contrib/admindocs/templates/admin_doc/template_tag_index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h1>Template tag documentation</h1>
1515
<h2>{% firstof library.grouper "Built-in tags" %}</h2>
1616
{% if library.grouper %}<p class="small quiet">To use these tags, put <code>{% templatetag openblock %} load {{ library.grouper }} {% templatetag closeblock %}</code> in your template before using the tag.</p><hr />{% endif %}
1717
{% for tag in library.list|dictsort:"name" %}
18-
<h3 id="{{ tag.name }}">{{ tag.name }}</h3>
18+
<h3 id="{{ library.grouper|default_if_none:"built_in" }}-{{ tag.name }}">{{ tag.name }}</h3>
1919
<h4>{{ tag.title }}</h4>
2020
<p>{{ tag.body }}</p>
2121
{% if not forloop.last %}<hr />{% endif %}
@@ -36,7 +36,7 @@ <h4>{{ tag.title }}</h4>
3636
<h2>{% firstof library.grouper "Built-in tags" %}</h2>
3737
<ul>
3838
{% for tag in library.list|dictsort:"name" %}
39-
<li><a href="#{{ tag.name }}">{{ tag.name }}</a></li>
39+
<li><a href="#{{ library.grouper|default_if_none:"built_in" }}-{{ tag.name }}">{{ tag.name }}</a></li>
4040
{% endfor %}
4141
</ul>
4242
</div>

0 commit comments

Comments
 (0)