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
This commit is contained in:
parent
7543eb95e6
commit
c5772009c1
|
@ -15,7 +15,7 @@
|
||||||
<h2>{% firstof library.grouper "Built-in filters" %}</h2>
|
<h2>{% firstof library.grouper "Built-in filters" %}</h2>
|
||||||
{% 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 %}
|
{% 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 %}
|
||||||
{% for filter in library.list|dictsort:"name" %}
|
{% for filter in library.list|dictsort:"name" %}
|
||||||
<h3 id="{{ filter.name }}">{{ filter.name }}</h3>
|
<h3 id="{{ library.grouper|default_if_none:"built_in" }}-{{ filter.name }}">{{ filter.name }}</h3>
|
||||||
<p>{{ filter.title }}</p>
|
<p>{{ filter.title }}</p>
|
||||||
<p>{{ filter.body }}</p>
|
<p>{{ filter.body }}</p>
|
||||||
{% if not forloop.last %}<hr />{% endif %}
|
{% if not forloop.last %}<hr />{% endif %}
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
<h2>{% firstof library.grouper "Built-in filters" %}</h2>
|
<h2>{% firstof library.grouper "Built-in filters" %}</h2>
|
||||||
<ul>
|
<ul>
|
||||||
{% for filter in library.list|dictsort:"name" %}
|
{% for filter in library.list|dictsort:"name" %}
|
||||||
<li><a href="#{{ filter.name }}">{{ filter.name }}</a></li>
|
<li><a href="#{{ library.grouper|default_if_none:"built_in" }}-{{ filter.name }}">{{ filter.name }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<h2>{% firstof library.grouper "Built-in tags" %}</h2>
|
<h2>{% firstof library.grouper "Built-in tags" %}</h2>
|
||||||
{% 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 %}
|
{% 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 %}
|
||||||
{% for tag in library.list|dictsort:"name" %}
|
{% for tag in library.list|dictsort:"name" %}
|
||||||
<h3 id="{{ tag.name }}">{{ tag.name }}</h3>
|
<h3 id="{{ library.grouper|default_if_none:"built_in" }}-{{ tag.name }}">{{ tag.name }}</h3>
|
||||||
<h4>{{ tag.title }}</h4>
|
<h4>{{ tag.title }}</h4>
|
||||||
<p>{{ tag.body }}</p>
|
<p>{{ tag.body }}</p>
|
||||||
{% if not forloop.last %}<hr />{% endif %}
|
{% if not forloop.last %}<hr />{% endif %}
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
<h2>{% firstof library.grouper "Built-in tags" %}</h2>
|
<h2>{% firstof library.grouper "Built-in tags" %}</h2>
|
||||||
<ul>
|
<ul>
|
||||||
{% for tag in library.list|dictsort:"name" %}
|
{% for tag in library.list|dictsort:"name" %}
|
||||||
<li><a href="#{{ tag.name }}">{{ tag.name }}</a></li>
|
<li><a href="#{{ library.grouper|default_if_none:"built_in" }}-{{ tag.name }}">{{ tag.name }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue