Django

Code

Ticket #3695: 3695.diff

File 3695.diff, 1.3 kB (added by simeon, 7 months ago)
  • django/contrib/admin/templates/admin_doc/template_tag_index.html

    old new  
    1515    <h2>{% if library.grouper %}{{ library.grouper }}{% else %}Built-in tags{% endif %}</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>{% if library.grouper %}{{ library.grouper }}{% else %}Built-in tags{% endif %}</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>