Ticket #2411: admin_doc.diff
File admin_doc.diff, 4.9 KB (added by , 18 years ago) |
---|
-
django/contrib/admin/templates/admin_doc/view_detail.html
6 6 7 7 {% block content %} 8 8 9 <h1>{{ name }}</h1>9 <h1>{{ name|escape }}</h1> 10 10 11 <h2 class="subhead">{{ summary }}</h2>11 <h2 class="subhead">{{ summary|removetags:"p" }}</h2> 12 12 13 <p>{{ body }}</p> 13 {{ body }} 14 14 15 15 {% if meta.Context %} 16 16 <h3>Context:</h3> -
django/contrib/admin/templates/admin_doc/template_tag_index.html
14 14 {% for library in tag_libraries %} 15 15 <div class="module"> 16 16 <h2>{% if library.grouper %}{{ library.grouper }}{% else %}Built-in tags{% endif %}</h2> 17 {% 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 {% 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 %} 18 18 {% for tag in library.list|dictsort:"name" %} 19 <h3 id="{{ tag.name }}">{{ tag.name }}</h3>20 <h4>{{ tag.title }}</h4>21 <p>{{ tag.body }}</p>19 <h3 id="{{ tag.name|escape }}">{{ tag.name|escape }}</h3> 20 <h4>{{ tag.title|removetags:"p" }}</h4> 21 {{ tag.body }} 22 22 {% if not forloop.last %}<hr />{% endif %} 23 23 {% endfor %} 24 24 </div> -
django/contrib/admin/templates/admin_doc/view_index.html
16 16 <h2>Jump to site</h2> 17 17 <ul> 18 18 {% for site_views in views_by_site %} 19 <li><a href="#site{{ site_views.grouper.id }}">{{ site_views.grouper.name }}</a></li>19 <li><a href="#site{{ site_views.grouper.id }}">{{ site_views.grouper.name|escape }}</a></li> 20 20 {% endfor %} 21 21 </ul> 22 22 </div> … … 26 26 27 27 {% for site_views in views_by_site %} 28 28 <div class="module"> 29 <h2 id="site{{ site_views.grouper.id }}">Views by URL on {{ site_views.grouper.name }}</h2>29 <h2 id="site{{ site_views.grouper.id }}">Views by URL on {{ site_views.grouper.name|escape }}</h2> 30 30 31 31 {% for view in site_views.list|dictsort:"url" %} 32 32 {% ifchanged %} 33 <h3><a href="{{ view.module }}.{{ view.name }}/"/>{{ view.url|escape }}</a></h3>34 <p class="small quiet">View function: {{ view.module }}.{{ view.name }}</p>35 <p>{{ view.title }}</p>36 <hr >33 <h3><a href="{{ view.module|escape }}.{{ view.name|escape }}/">{{ view.url|escape }}</a></h3> 34 <p class="small quiet">View function: {{ view.module|escape }}.{{ view.name|escape }}</p> 35 <p>{{ view.title|escape }}</p> 36 <hr /> 37 37 {% endifchanged %} 38 38 {% endfor %} 39 39 </div> -
django/contrib/admin/templates/admin_doc/template_filter_index.html
14 14 {% for library in filter_libraries %} 15 15 <div class="module"> 16 16 <h2>{% if library.grouper %}{{ library.grouper }}{% else %}Built-in filters{% endif %}</h2> 17 {% 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 {% 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 %} 18 18 {% for filter in library.list|dictsort:"name" %} 19 <h3 id="{{ filter.name }}">{{ filter.name }}</h3>20 <p>{{ filter.title }}</p>21 <p>{{ filter.body }}</p>19 <h3 id="{{ filter.name }}">{{ filter.name|escape }}</h3> 20 {{ filter.title }} 21 {{ filter.body }} 22 22 {% if not forloop.last %}<hr />{% endif %} 23 23 {% endfor %} 24 24 </div> … … 37 37 <h2>{% if library.grouper %}{{ library.grouper }}{% else %}Built-in filters{% endif %}</h2> 38 38 <ul> 39 39 {% for filter in library.list|dictsort:"name" %} 40 <li><a href="#{{ filter.name }}">{{ filter.name }}</a></li>40 <li><a href="#{{ filter.name }}">{{ filter.name|escape }}</a></li> 41 41 {% endfor %} 42 42 </ul> 43 43 </div>