Ticket #3695: 3695.2.diff
File 3695.2.diff, 2.6 KB (added by , 15 years ago) |
---|
-
django/contrib/admindocs/templates/admin_doc/template_tag_index.html
15 15 <h2>{% firstof library.grouper "Built-in tags" %}</h2> 16 16 {% 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 %} 17 17 {% 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> 19 19 <h4>{{ tag.title }}</h4> 20 20 <p>{{ tag.body }}</p> 21 21 {% if not forloop.last %}<hr />{% endif %} … … 36 36 <h2>{% firstof library.grouper "Built-in tags" %}</h2> 37 37 <ul> 38 38 {% 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> 40 40 {% endfor %} 41 41 </ul> 42 42 </div> -
django/contrib/admindocs/templates/admin_doc/template_filter_index.html
15 15 <h2>{% firstof library.grouper "Built-in filters" %}</h2> 16 16 {% 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 %} 17 17 {% 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> 19 19 <p>{{ filter.title }}</p> 20 20 <p>{{ filter.body }}</p> 21 21 {% if not forloop.last %}<hr />{% endif %} … … 36 36 <h2>{% firstof library.grouper "Built-in filters" %}</h2> 37 37 <ul> 38 38 {% 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> 40 40 {% endfor %} 41 41 </ul> 42 42 </div>