Ticket #3695: 3695.2.diff

File 3695.2.diff, 2.6 KB (added by simeon, 14 years ago)

Updated to apply against r13096

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

     
    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 %}
     
    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>
  • django/contrib/admindocs/templates/admin_doc/template_filter_index.html

     
    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 %}
     
    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>
Back to Top