Ticket #8172: decruftify_contrib_templates.diff
File decruftify_contrib_templates.diff, 39.4 KB (added by , 16 years ago) |
---|
-
django/views/static.py
67 67 return response 68 68 69 69 DEFAULT_DIRECTORY_INDEX_TEMPLATE = """ 70 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">70 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 71 71 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 72 72 <head> 73 73 <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> 74 74 <meta http-equiv="Content-Language" content="en-us" /> 75 75 <meta name="robots" content="NONE,NOARCHIVE" /> 76 <title>Index of {{ directory |escape}}</title>76 <title>Index of {{ directory }}</title> 77 77 </head> 78 78 <body> 79 <h1>Index of {{ directory |escape}}</h1>79 <h1>Index of {{ directory }}</h1> 80 80 <ul> 81 {% ifnotequal directory "/" %} 82 <li><a href="../">../</a></li> 83 {% endifnotequal %} 81 84 {% for f in file_list %} 82 <li><a href="{{ f|urlencode }}">{{ f |escape}}</a></li>85 <li><a href="{{ f|urlencode }}">{{ f }}</a></li> 83 86 {% endfor %} 84 87 </ul> 85 88 </body> -
django/contrib/gis/templates/gis/admin/openlayers.js
2 2 {% block vars %}var {{ module }} = {}; 3 3 {{ module }}.map = null; {{ module }}.controls = null; {{ module }}.panel = null; {{ module }}.re = new RegExp("^SRID=\d+;(.+)", "i"); {{ module }}.layers = {}; 4 4 {{ module }}.wkt_f = new OpenLayers.Format.WKT(); 5 {{ module }}.is_collection = { % if is_collection %}true{% else %}false{% endif %};5 {{ module }}.is_collection = {{ is_collection|yesno:"true,false" }}; 6 6 {{ module }}.collection_type = '{{ collection_type }}'; 7 {{ module }}.is_linestring = { % if is_linestring %}true{% else %}false{% endif %};8 {{ module }}.is_polygon = { % if is_polygon %}true{% else %}false{% endif %};9 {{ module }}.is_point = { % if is_point %}true{% else %}false{% endif %};7 {{ module }}.is_linestring = {{ is_linestring|yesno:"true,false" }}; 8 {{ module }}.is_polygon = {{ is_polygon|yesno:"true,false" }}; 9 {{ module }}.is_point = {{ is_point|yesno:"true,false" }}; 10 10 {% endblock %} 11 11 {{ module }}.get_ewkt = function(feat){return 'SRID={{ srid }};' + {{ module }}.wkt_f.write(feat);} 12 12 {{ module }}.read_wkt = function(wkt){ … … 147 147 {% if scale_text %}{{ module }}.map.addControl(new OpenLayers.Control.Scale());{% endif %} 148 148 {% if layerswitcher %}{{ module }}.map.addControl(new OpenLayers.Control.LayerSwitcher());{% endif %} 149 149 // Then add optional behavior controls 150 {% if scrollable %}{% else %}{{ module }}.map.getControlsByClass('OpenLayers.Control.Navigation')[0].disableZoomWheel();{% endif %}150 {% if not scrollable %}{{ module }}.map.getControlsByClass('OpenLayers.Control.Navigation')[0].disableZoomWheel();{% endif %} 151 151 {% endblock %} 152 152 if (wkt){ 153 153 {{ module }}.enableEditing(); -
django/contrib/formtools/templates/formtools/preview.html
8 8 {% for field in form %} 9 9 <tr> 10 10 <th>{{ field.label }}:</th> 11 <td>{{ field.data |escape}}</td>11 <td>{{ field.data }}</td> 12 12 </tr> 13 13 {% endfor %} 14 14 </table> -
django/contrib/sitemaps/templates/sitemap.xml
1 {% autoescape off %}<?xml version="1.0" encoding="UTF-8"?>1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> 3 3 {% spaceless %} 4 4 {% for url in urlset %} 5 5 <url> 6 <loc>{{ url.location |escape}}</loc>6 <loc>{{ url.location }}</loc> 7 7 {% if url.lastmod %}<lastmod>{{ url.lastmod|date:"Y-m-d" }}</lastmod>{% endif %} 8 8 {% if url.changefreq %}<changefreq>{{ url.changefreq }}</changefreq>{% endif %} 9 9 {% if url.priority %}<priority>{{ url.priority }}</priority>{% endif %} … … 11 11 {% endfor %} 12 12 {% endspaceless %} 13 13 </urlset> 14 {% endautoescape %} -
django/contrib/sitemaps/templates/sitemap_index.xml
1 {% autoescape off %}<?xml version="1.0" encoding="UTF-8"?>1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> 3 {% for location in sitemaps %}<sitemap><loc>{{ location |escape}}</loc></sitemap>{% endfor %}3 {% for location in sitemaps %}<sitemap><loc>{{ location }}</loc></sitemap>{% endfor %} 4 4 </sitemapindex> 5 {% endautoescape %} -
django/contrib/admin/templates/admin/edit_inline/tabular.html
3 3 <div class="tabular inline-related {% if forloop.last %}last-related{% endif %}"> 4 4 {{ inline_admin_formset.formset.management_form }} 5 5 <fieldset class="module"> 6 <h2>{{ inline_admin_formset.opts.verbose_name_plural|capfirst |escape}}</h2>6 <h2>{{ inline_admin_formset.opts.verbose_name_plural|capfirst }}</h2> 7 7 {{ inline_admin_formset.formset.non_form_errors }} 8 8 <table> 9 9 <thead><tr> 10 10 {% for field in inline_admin_formset.fields %} 11 11 {% if not field.is_hidden %} 12 <th {% if forloop.first %}colspan="2"{% endif %}>{{ field.label|capfirst |escape}}</th>12 <th {% if forloop.first %}colspan="2"{% endif %}>{{ field.label|capfirst }}</th> 13 13 {% endif %} 14 14 {% endfor %} 15 15 {% if inline_admin_formset.formset.can_delete %}<th>{% trans "Delete?" %}</th>{% endif %} … … 21 21 22 22 <td class="original"> 23 23 {% if inline_admin_form.original or inline_admin_form.show_url %}<p> 24 { % if inline_admin_form.original %} {{ inline_admin_form.original }}{% endif %}24 {{ inline_admin_form.original }} 25 25 {% if inline_admin_form.show_url %}<a href="../../../r/{{ inline_admin_form.original.content_type_id }}/{{ inline_admin_form.original.id }}/">{% trans "View on site" %}</a>{% endif %} 26 26 </p>{% endif %} 27 27 {{ inline_admin_form.pk_field.field }} -
django/contrib/admin/templates/admin/change_list.html
5 5 6 6 {% block bodyclass %}change-list{% endblock %} 7 7 8 {% if not is_popup %}{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../">{% trans "Home" %}</a> › <a href="../">{{ app_label|capfirst |escape }}</a> › {{ cl.opts.verbose_name_plural|capfirst|escape}}</div>{% endblock %}{% endif %}8 {% if not is_popup %}{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../">{% trans "Home" %}</a> › <a href="../">{{ app_label|capfirst }}</a> › {{ cl.opts.verbose_name_plural|capfirst }}</div>{% endblock %}{% endif %} 9 9 10 10 {% block coltype %}flex{% endblock %} 11 11 … … 13 13 <div id="content-main"> 14 14 {% block object-tools %} 15 15 {% if has_add_permission %} 16 <ul class="object-tools"><li><a href="add/{% if is_popup %}?_popup=1{% endif %}" class="addlink">{% blocktrans with cl.opts.verbose_name |escapeas name %}Add {{ name }}{% endblocktrans %}</a></li></ul>16 <ul class="object-tools"><li><a href="add/{% if is_popup %}?_popup=1{% endif %}" class="addlink">{% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}</a></li></ul> 17 17 {% endif %} 18 18 {% endblock %} 19 19 <div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist"> -
django/contrib/admin/templates/admin/template_validator.html
12 12 13 13 <fieldset class="module aligned"> 14 14 <div class="form-row{% if form.errors.site %} error{% endif %} required"> 15 { % if form.errors.site %}{{ form.errors.site }}{% endif %}15 {{ form.errors.site }} 16 16 <h4><label for="id_site">{{ form.site.label }}:</label> {{ form.site }}</h4> 17 17 </div> 18 18 <div class="form-row{% if form.errors.template %} error{% endif %} required"> 19 { % if form.errors.template %}{{ form.errors.template }}{% endif %}19 {{ form.errors.template }} 20 20 <h4><label for="id_template">{{ form.template.label }}:</label> {{ form.template }}</h4> 21 21 </div> 22 22 </fieldset> -
django/contrib/admin/templates/admin/filter.html
1 1 {% load i18n %} 2 <h3>{% blocktrans with title |escapeas filter_title %} By {{ filter_title }} {% endblocktrans %}</h3>2 <h3>{% blocktrans with title as filter_title %} By {{ filter_title }} {% endblocktrans %}</h3> 3 3 <ul> 4 4 {% for choice in choices %} 5 5 <li{% if choice.selected %} class="selected"{% endif %}> 6 <a href="{{ choice.query_string|iriencode }}">{{ choice.display |escape}}</a></li>6 <a href="{{ choice.query_string|iriencode }}">{{ choice.display }}</a></li> 7 7 {% endfor %} 8 8 </ul> -
django/contrib/admin/templates/admin/object_history.html
28 28 {% for action in action_list %} 29 29 <tr> 30 30 <th scope="row">{{ action.action_time|date:_("DATETIME_FORMAT") }}</th> 31 <td>{{ action.user.username }}{% if action.user. first_name %} ({{ action.user.first_name }} {{ action.user.last_name }}){% endif %}</td>31 <td>{{ action.user.username }}{% if action.user.get_full_name %} ({{ action.user.get_full_name }}){% endif %}</td> 32 32 <td>{{ action.change_message }}</td> 33 33 </tr> 34 34 {% endfor %} -
django/contrib/admin/templates/admin/search_form.html
4 4 <div id="toolbar"><form id="changelist-search" action="" method="get"> 5 5 <div><!-- DIV needed for valid HTML --> 6 6 <label for="searchbar"><img src="{% admin_media_prefix %}img/admin/icon_searchbox.png" alt="Search" /></label> 7 <input type="text" size="40" name="{{ search_var }}" value="{{ cl.query |escape}}" id="searchbar" />7 <input type="text" size="40" name="{{ search_var }}" value="{{ cl.query }}" id="searchbar" /> 8 8 <input type="submit" value="{% trans 'Go' %}" /> 9 9 {% if show_result_count %} 10 10 <span class="small quiet">{% blocktrans count cl.result_count as counter %}1 result{% plural %}{{ counter }} results{% endblocktrans %} (<a href="?{% if cl.is_popup %}pop=1{% endif %}">{% blocktrans with cl.full_result_count as full_result_count %}{{ full_result_count }} total{% endblocktrans %}</a>)</span> 11 11 {% endif %} 12 12 {% for pair in cl.params.items %} 13 {% ifnotequal pair.0 search_var %}<input type="hidden" name="{{ pair.0 |escape }}" value="{{ pair.1|escape}}"/>{% endifnotequal %}13 {% ifnotequal pair.0 search_var %}<input type="hidden" name="{{ pair.0 }}" value="{{ pair.1 }}"/>{% endifnotequal %} 14 14 {% endfor %} 15 15 </div> 16 16 </form></div> -
django/contrib/admin/templates/admin/pagination.html
6 6 {% paginator_number cl i %} 7 7 {% endfor %} 8 8 {% endif %} 9 {{ cl.result_count }} {% ifequal cl.result_count 1 %}{{ cl.opts.verbose_name |escape}}{% else %}{{ cl.opts.verbose_name_plural }}{% endifequal %}9 {{ cl.result_count }} {% ifequal cl.result_count 1 %}{{ cl.opts.verbose_name }}{% else %}{{ cl.opts.verbose_name_plural }}{% endifequal %} 10 10 {% if show_all_url %} <a href="{{ show_all_url }}" class="showall">{% trans 'Show all' %}</a>{% endif %} 11 11 </p> -
django/contrib/admin/templates/admin/auth/user/change_password.html
8 8 {% block breadcrumbs %}{% if not is_popup %} 9 9 <div class="breadcrumbs"> 10 10 <a href="../../../../">{% trans "Home" %}</a> › 11 <a href="../../">{{ opts.verbose_name_plural|capfirst |escape}}</a> ›12 <a href="../">{{ original|truncatewords:"18" |escape}}</a> ›11 <a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> › 12 <a href="../">{{ original|truncatewords:"18" }}</a> › 13 13 {% trans 'Change password' %} 14 14 </div> 15 15 {% endif %}{% endblock %} … … 23 23 </p> 24 24 {% endif %} 25 25 26 <p>{% blocktrans with original.username |escapeas username %}Enter a new password for the user <strong>{{ username }}</strong>.{% endblocktrans %}</p>26 <p>{% blocktrans with original.username as username %}Enter a new password for the user <strong>{{ username }}</strong>.{% endblocktrans %}</p> 27 27 28 28 <fieldset class="module aligned"> 29 29 -
django/contrib/admin/templates/admin/index.html
59 59 {% else %} 60 60 <ul class="actionlist"> 61 61 {% for entry in admin_log %} 62 <li class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}">{% if not entry.is_deletion %}<a href="{{ entry.get_admin_url }}">{% endif %}{{ entry.object_repr |escape}}{% if not entry.is_deletion %}</a>{% endif %}<br /><span class="mini quiet">{% filter capfirst %}{% trans entry.content_type.name %}{% endfilter %}</span></li>62 <li class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}">{% if not entry.is_deletion %}<a href="{{ entry.get_admin_url }}">{% endif %}{{ entry.object_repr }}{% if not entry.is_deletion %}</a>{% endif %}<br /><span class="mini quiet">{% filter capfirst %}{% trans entry.content_type.name %}{% endfilter %}</span></li> 63 63 {% endfor %} 64 64 </ul> 65 65 {% endif %} -
django/contrib/admin/templates/admin/delete_confirmation.html
4 4 {% block breadcrumbs %} 5 5 <div class="breadcrumbs"> 6 6 <a href="../../../../">{% trans "Home" %}</a> › 7 <a href="../../../">{{ app_label|capfirst |escape}}</a> ›7 <a href="../../../">{{ app_label|capfirst }}</a> › 8 8 <a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> › 9 <a href="../">{{ object| escape|truncatewords:"18" }}</a> ›9 <a href="../">{{ object|truncatewords:"18" }}</a> › 10 10 {% trans 'Delete' %} 11 11 </div> 12 12 {% endblock %} 13 13 14 14 {% block content %} 15 15 {% if perms_lacking %} 16 <p>{% blocktrans with object |escapeas escaped_object %}Deleting the {{ object_name }} '{{ escaped_object }}' would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:{% endblocktrans %}</p>16 <p>{% blocktrans with object as escaped_object %}Deleting the {{ object_name }} '{{ escaped_object }}' would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:{% endblocktrans %}</p> 17 17 <ul> 18 18 {% for obj in perms_lacking %} 19 19 <li>{{ obj }}</li> 20 20 {% endfor %} 21 21 </ul> 22 22 {% else %} 23 <p>{% blocktrans with object |escapeas escaped_object %}Are you sure you want to delete the {{ object_name }} "{{ escaped_object }}"? All of the following related items will be deleted:{% endblocktrans %}</p>23 <p>{% blocktrans with object as escaped_object %}Are you sure you want to delete the {{ object_name }} "{{ escaped_object }}"? All of the following related items will be deleted:{% endblocktrans %}</p> 24 24 <ul>{{ deleted_objects|unordered_list }}</ul> 25 25 <form action="" method="post"> 26 26 <div> -
django/contrib/admin/templates/admin/base.html
22 22 {% block branding %}{% endblock %} 23 23 </div> 24 24 {% if user.is_authenticated and user.is_staff %} 25 <div id="user-tools">{% trans 'Welcome,' %} <strong>{% if user.first_name %}{{ user.first_name|escape }}{% else %}{{ user.username }}{% endif%}</strong>. {% block userlinks %}{% url django-admindocs-docroot as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %}<a href="{{ root_path }}password_change/">{% trans 'Change password' %}</a> / <a href="{{ root_path }}logout/">{% trans 'Log out' %}</a>{% endblock %}</div>25 <div id="user-tools">{% trans 'Welcome,' %} <strong>{% firstof user.first_name user.username %}</strong>. {% block userlinks %}{% url django-admindocs-docroot as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %}<a href="{{ root_path }}password_change/">{% trans 'Change password' %}</a> / <a href="{{ root_path }}logout/">{% trans 'Log out' %}</a>{% endblock %}</div> 26 26 {% endif %} 27 27 {% block nav-global %}{% endblock %} 28 28 </div> 29 29 <!-- END Header --> 30 {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{% trans 'Home' %}</a>{% if title %} › {{ title |escape}}{% endif %}</div>{% endblock %}30 {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{% trans 'Home' %}</a>{% if title %} › {{ title }}{% endif %}</div>{% endblock %} 31 31 {% endif %} 32 32 33 33 {% if messages %} 34 <ul class="messagelist">{% for message in messages %}<li>{{ message |escape}}</li>{% endfor %}</ul>34 <ul class="messagelist">{% for message in messages %}<li>{{ message }}</li>{% endfor %}</ul> 35 35 {% endif %} 36 36 37 37 <!-- Content --> 38 38 <div id="content" class="{% block coltype %}colM{% endblock %}"> 39 39 {% block pretitle %}{% endblock %} 40 {% block content_title %}{% if title %}<h1>{{ title |escape}}</h1>{% endif %}{% endblock %}40 {% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %} 41 41 {% block content %} 42 42 {% block object-tools %}{% endblock %} 43 43 {{ content }} -
django/contrib/admin/templates/registration/password_reset_confirm.html
14 14 <p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p> 15 15 16 16 <form action="" method="post"> 17 { % if form.new_password1.errors %}{{ form.new_password1.errors }}{% endif %}17 {{ form.new_password1.errors }} 18 18 <p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p> 19 { % if form.new_password2.errors %}{{ form.new_password2.errors }}{% endif %}19 {{ form.new_password2.errors }} 20 20 <p class="aligned wide"><label for="id_new_password2">{% trans 'Confirm password:' %}</label>{{ form.new_password2 }}</p> 21 21 <p><input type="submit" value="{% trans 'Change my password' %}" /></p> 22 22 </form> -
django/contrib/admin/templates/registration/password_reset_form.html
12 12 <p>{% trans "Forgotten your password? Enter your e-mail address below, and we'll e-mail instructions for setting a new one." %}</p> 13 13 14 14 <form action="" method="post"> 15 { % if form.email.errors %}{{ form.email.errors }}{% endif %}15 {{ form.email.errors }} 16 16 <p><label for="id_email">{% trans 'E-mail address:' %}</label> {{ form.email }} <input type="submit" value="{% trans 'Reset my password' %}" /></p> 17 17 </form> 18 18 -
django/contrib/admin/templates/registration/password_change_form.html
13 13 14 14 <form action="" method="post"> 15 15 16 { % if form.old_password.errors %}{{ form.old_password.errors }}{% endif %}16 {{ form.old_password.errors }} 17 17 <p class="aligned wide"><label for="id_old_password">{% trans 'Old password:' %}</label>{{ form.old_password }}</p> 18 { % if form.new_password1.errors %}{{ form.new_password1.errors }}{% endif %}18 {{ form.new_password1.errors }} 19 19 <p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p> 20 { % if form.new_password2.errors %}{{ form.new_password2.errors }}{% endif %}20 {{ form.new_password2.errors }} 21 21 <p class="aligned wide"><label for="id_new_password2">{% trans 'Confirm password:' %}</label>{{ form.new_password2 }}</p> 22 22 23 23 <p><input type="submit" value="{% trans 'Change my password' %}" /></p> -
django/contrib/databrowse/templates/databrowse/choice_detail.html
1 1 {% extends "databrowse/base_site.html" %} 2 2 3 {% block title %}{{ model.verbose_name_plural|capfirst }} by {{ field.field.verbose_name }}: {{ value |escape}}{% endblock %}3 {% block title %}{{ model.verbose_name_plural|capfirst }} by {{ field.field.verbose_name }}: {{ value }}{% endblock %} 4 4 5 5 {% block content %} 6 6 7 <div id="breadcrumbs"><a href="{{ root_url }}">Home</a> / <a href="{{ model.url }}">{{ model.verbose_name_plural|capfirst }}</a> / <a href="{{ field.url }}">By {{ field.field.verbose_name }}</a> / {{ value |escape}}</div>7 <div id="breadcrumbs"><a href="{{ root_url }}">Home</a> / <a href="{{ model.url }}">{{ model.verbose_name_plural|capfirst }}</a> / <a href="{{ field.url }}">By {{ field.field.verbose_name }}</a> / {{ value }}</div> 8 8 9 <h1>{{ model.verbose_name_plural|capfirst }} by {{ field.field.verbose_name }}: {{ value |escape}}</h1>9 <h1>{{ model.verbose_name_plural|capfirst }} by {{ field.field.verbose_name }}: {{ value }}</h1> 10 10 11 11 <ul class="objectlist"> 12 12 {% for object in object_list %} 13 <li class="{% cycle 'odd' 'even' %}"><a href="{{ object.url }}">{{ object |escape}}</a></li>13 <li class="{% cycle 'odd' 'even' %}"><a href="{{ object.url }}">{{ object }}</a></li> 14 14 {% endfor %} 15 15 </ul> 16 16 -
django/contrib/databrowse/templates/databrowse/calendar_month.html
6 6 7 7 <div id="breadcrumbs"><a href="{{ root_url }}">Home</a> / <a href="{{ model.url }}">{{ model.verbose_name_plural|capfirst }}</a> / <a href="../../../">Calendars</a> / <a href="../../">By {{ field.verbose_name }}</a> / <a href="../">{{ month.year }}</a> / {{ month|date:"F" }}</div> 8 8 9 <h1>{{ object_list.count }} {% if object_list.count|pluralize %}{{ model.verbose_name_plural |escape }}{% else %}{{ model.verbose_name|escape }}{% endif %} with {{ field.verbose_name }} on {{ day|date:"F Y" }}</h1>9 <h1>{{ object_list.count }} {% if object_list.count|pluralize %}{{ model.verbose_name_plural }}{% else %}{{ model.verbose_name }}{% endif %} with {{ field.verbose_name }} on {{ day|date:"F Y" }}</h1> 10 10 11 11 <ul class="objectlist"> 12 12 {% for object in object_list %} 13 <li class="{% cycle 'odd' 'even' %}"><a href="{{ object.url }}">{{ object |escape}}</a></li>13 <li class="{% cycle 'odd' 'even' %}"><a href="{{ object.url }}">{{ object }}</a></li> 14 14 {% endfor %} 15 15 </ul> 16 16 -
django/contrib/databrowse/templates/databrowse/fieldchoice_detail.html
1 1 {% extends "databrowse/base_site.html" %} 2 2 3 {% block title %}{{ model.verbose_name_plural|capfirst |escape }} with {{ field.field.verbose_name|escape }} {{ value|escape }}{% endblock %}3 {% block title %}{{ model.verbose_name_plural|capfirst }} with {{ field.field.verbose_name }} {{ value }}{% endblock %} 4 4 5 5 {% block content %} 6 6 7 <div id="breadcrumbs"><a href="{{ root_url }}">Home</a> / <a href="{{ model.url }}">{{ model.verbose_name_plural|capfirst }}</a> / <a href="../../">Fields</a> / <a href="../">By {{ field.field.verbose_name |escape }}</a> / {{ value|escape }}</div>7 <div id="breadcrumbs"><a href="{{ root_url }}">Home</a> / <a href="{{ model.url }}">{{ model.verbose_name_plural|capfirst }}</a> / <a href="../../">Fields</a> / <a href="../">By {{ field.field.verbose_name }}</a> / {{ value }}</div> 8 8 9 <h1>{{ object_list.count }} {% if object_list.count|pluralize %}{{ model.verbose_name_plural |escape }}{% else %}{{ model.verbose_name|escape }}{% endif %} with {{ field.field.verbose_name|escape }} {{ value|escape }}</h1>9 <h1>{{ object_list.count }} {% if object_list.count|pluralize %}{{ model.verbose_name_plural }}{% else %}{{ model.verbose_name }}{% endif %} with {{ field.field.verbose_name }} {{ value }}</h1> 10 10 11 11 <ul class="objectlist"> 12 12 {% for object in object_list %} 13 <li class="{% cycle 'odd' 'even' %}"><a href="{{ object.url }}">{{ object |escape}}</a></li>13 <li class="{% cycle 'odd' 'even' %}"><a href="{{ object.url }}">{{ object }}</a></li> 14 14 {% endfor %} 15 15 </ul> 16 16 -
django/contrib/databrowse/templates/databrowse/model_detail.html
12 12 13 13 <ul class="objectlist"> 14 14 {% for object in model.objects %} 15 <li class="{% cycle 'odd' 'even' %}"><a href="{{ object.url }}">{{ object |escape}}</a></li>15 <li class="{% cycle 'odd' 'even' %}"><a href="{{ object.url }}">{{ object }}</a></li> 16 16 {% endfor %} 17 17 </ul> 18 18 -
django/contrib/databrowse/templates/databrowse/homepage.html
11 11 <h2><a href="{{ model.url }}">{{ model.verbose_name_plural|capfirst }}</a></h2> 12 12 <p> 13 13 {% for object in model.sample_objects %} 14 <a href="{{ object.url }}">{{ object |escape}}</a>,14 <a href="{{ object.url }}">{{ object }}</a>, 15 15 {% endfor %} 16 16 <a class="more" href="{{ model.url }}">More →</a> 17 17 </p> -
django/contrib/databrowse/templates/databrowse/choice_list.html
10 10 11 11 <ul class="objectlist"> 12 12 {% for choice in field.choices %} 13 <li class="{% cycle 'odd' 'even' %}"><a href="{{ choice.url }}">{{ choice.label |escape}}</a></li>13 <li class="{% cycle 'odd' 'even' %}"><a href="{{ choice.url }}">{{ choice.label }}</a></li> 14 14 {% endfor %} 15 15 </ul> 16 16 -
django/contrib/databrowse/templates/databrowse/object_detail.html
4 4 5 5 {% block content %} 6 6 7 <div id="breadcrumbs"><a href="{{ root_url }}">Home</a> / <a href="{{ object.model.url }}">{{ object.model.verbose_name_plural|capfirst }}</a> / {{ object |escape}}</div>7 <div id="breadcrumbs"><a href="{{ root_url }}">Home</a> / <a href="{{ object.model.url }}">{{ object.model.verbose_name_plural|capfirst }}</a> / {{ object }}</div> 8 8 9 <h1>{{ object.model.verbose_name|capfirst }}: {{ object |escape}}</h1>9 <h1>{{ object.model.verbose_name|capfirst }}: {{ object }}</h1> 10 10 11 11 <table class="objectinfo"> 12 12 {% for field in object.fields %} … … 15 15 <td> 16 16 {% if field.urls %} 17 17 {% for value, url in field.urls %} 18 {% if url %}<a href="{{ url }}">{% endif %}{{ value |escape}}{% if url %}</a>{% endif %}{% if not forloop.last %}, {% endif %}18 {% if url %}<a href="{{ url }}">{% endif %}{{ value }}{% if url %}</a>{% endif %}{% if not forloop.last %}, {% endif %} 19 19 {% endfor %} 20 20 {% else %}None{% endif %} 21 21 </td> … … 29 29 {% if related_object.object_list %} 30 30 <ul class="objectlist"> 31 31 {% for object in related_object.object_list %} 32 <li class="{% cycle 'odd' 'even' %}"><a href="{{ object.url }}">{{ object |escape}}</a></li>32 <li class="{% cycle 'odd' 'even' %}"><a href="{{ object.url }}">{{ object }}</a></li> 33 33 {% endfor %} 34 34 </ul> 35 35 {% else %} -
django/contrib/databrowse/templates/databrowse/fieldchoice_list.html
1 1 {% extends "databrowse/base_site.html" %} 2 2 3 {% block title %}{{ model.verbose_name_plural|capfirst |escape }} by {{ field.field.verbose_name|escape }}{% endblock %}3 {% block title %}{{ model.verbose_name_plural|capfirst }} by {{ field.field.verbose_name }}{% endblock %} 4 4 5 5 {% block content %} 6 6 7 <div id="breadcrumbs"><a href="{{ root_url }}">Home</a> / <a href="{{ model.url }}">{{ model.verbose_name_plural|capfirst }}</a> / <a href="../">Fields</a> / By {{ field.field.verbose_name |escape}}</div>7 <div id="breadcrumbs"><a href="{{ root_url }}">Home</a> / <a href="{{ model.url }}">{{ model.verbose_name_plural|capfirst }}</a> / <a href="../">Fields</a> / By {{ field.field.verbose_name }}</div> 8 8 9 <h1>{{ model.verbose_name_plural|capfirst |escape }} by {{ field.field.verbose_name|escape }}</h1>9 <h1>{{ model.verbose_name_plural|capfirst }} by {{ field.field.verbose_name }}</h1> 10 10 11 11 <ul class="objectlist"> 12 12 {% for object in object_list %} 13 <li class="{% cycle 'odd' 'even' %}"><a href="{{ object|iriencode }}/">{{ object |escape}}</a></li>13 <li class="{% cycle 'odd' 'even' %}"><a href="{{ object|iriencode }}/">{{ object }}</a></li> 14 14 {% endfor %} 15 15 </ul> 16 16 -
django/contrib/databrowse/templates/databrowse/fieldchoice_homepage.html
1 1 {% extends "databrowse/base_site.html" %} 2 2 3 {% block title %}Browsable fields in {{ model.verbose_name_plural |escape}}{% endblock %}3 {% block title %}Browsable fields in {{ model.verbose_name_plural }}{% endblock %} 4 4 5 5 {% block content %} 6 6 -
django/contrib/databrowse/templates/databrowse/calendar_day.html
6 6 7 7 <div id="breadcrumbs"><a href="{{ root_url }}">Home</a> / <a href="{{ model.url }}">{{ model.verbose_name_plural|capfirst }}</a> / <a href="../../../../">Calendars</a> / <a href="../../../">By {{ field.verbose_name }}</a> / <a href="../../">{{ day.year }}</a> / <a href="../">{{ day|date:"F" }}</a> / {{ day.day }}</div> 8 8 9 <h1>{{ object_list.count }} {% if object_list.count|pluralize %}{{ model.verbose_name_plural |escape }}{% else %}{{ model.verbose_name|escape }}{% endif %} with {{ field.verbose_name }} on {{ day|date:"F j, Y" }}</h1>9 <h1>{{ object_list.count }} {% if object_list.count|pluralize %}{{ model.verbose_name_plural }}{% else %}{{ model.verbose_name }}{% endif %} with {{ field.verbose_name }} on {{ day|date:"F j, Y" }}</h1> 10 10 11 11 <ul class="objectlist"> 12 12 {% for object in object_list %} 13 <li class="{% cycle 'odd' 'even' %}"><a href="{{ object.url }}">{{ object |escape}}</a></li>13 <li class="{% cycle 'odd' 'even' %}"><a href="{{ object.url }}">{{ object }}</a></li> 14 14 {% endfor %} 15 15 </ul> 16 16 -
django/contrib/admindocs/templates/admin_doc/template_detail.html
1 1 {% extends "admin/base_site.html" %} 2 2 {% load i18n %} 3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../../../">Home</a> › <a href="../../">Documentation</a> › Templates › {{ name |escape}}</div>{% endblock %}3 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../../../">Home</a> › <a href="../../">Documentation</a> › Templates › {{ name }}</div>{% endblock %} 4 4 5 {% block title %}Template: {{ name |escape}}{% endblock %}5 {% block title %}Template: {{ name }}{% endblock %} 6 6 7 7 {% block content %} 8 <h1>Template: "{{ name |escape}}"</h1>8 <h1>Template: "{{ name }}"</h1> 9 9 10 10 {% regroup templates|dictsort:"site_id" by site as templates_by_site %} 11 11 {% for group in templates_by_site %} 12 <h2>Search path for template "{{ name |escape}}" on {{ group.grouper }}:</h2>12 <h2>Search path for template "{{ name }}" on {{ group.grouper }}:</h2> 13 13 <ol> 14 14 {% for template in group.list|dictsort:"order" %} 15 <li><code>{{ template.file |escape}}</code>{% if not template.exists %} <em>(does not exist)</em>{% endif %}</li>15 <li><code>{{ template.file }}</code>{% if not template.exists %} <em>(does not exist)</em>{% endif %}</li> 16 16 {% endfor %} 17 17 </ol> 18 18 {% endfor %} -
django/contrib/admindocs/templates/admin_doc/template_tag_index.html
12 12 {% regroup tags|dictsort:"library" by library as tag_libraries %} 13 13 {% for library in tag_libraries %} 14 14 <div class="module"> 15 <h2>{% if library.grouper %}{{ library.grouper }}{% else %}Built-in tags{% endif%}</h2>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 18 <h3 id="{{ tag.name }}">{{ tag.name }}</h3> … … 33 33 {% regroup tags|dictsort:"library" by library as tag_libraries %} 34 34 {% for library in tag_libraries %} 35 35 <div class="module"> 36 <h2>{% if library.grouper %}{{ library.grouper }}{% else %}Built-in tags{% endif%}</h2>36 <h2>{% firstof library.grouper "Built-in tags" %}</h2> 37 37 <ul> 38 38 {% for tag in library.list|dictsort:"name" %} 39 39 <li><a href="#{{ tag.name }}">{{ tag.name }}</a></li> -
django/contrib/admindocs/templates/admin_doc/view_index.html
29 29 30 30 {% for view in site_views.list|dictsort:"url" %} 31 31 {% ifchanged %} 32 <h3><a href="{{ view.module }}.{{ view.name }}/">{{ view.url |escape}}</a></h3>32 <h3><a href="{{ view.module }}.{{ view.name }}/">{{ view.url }}</a></h3> 33 33 <p class="small quiet">View function: {{ view.module }}.{{ view.name }}</p> 34 34 <p>{{ view.title }}</p> 35 35 <hr /> -
django/contrib/admindocs/templates/admin_doc/model_detail.html
34 34 <tr> 35 35 <td>{{ field.name }}</td> 36 36 <td>{{ field.data_type }}</td> 37 <td>{ % if field.verbose %}{{ field.verbose }}{% endif %}{% if field.help_text %} - {{ field.help_text|safe }}{% endif %}</td>37 <td>{{ field.verbose }}{% if field.help_text %} - {{ field.help_text|safe }}{% endif %}</td> 38 38 </tr> 39 39 {% endfor %} 40 40 </tbody> -
django/contrib/admindocs/templates/admin_doc/template_filter_index.html
12 12 {% regroup filters|dictsort:"library" by library as filter_libraries %} 13 13 {% for library in filter_libraries %} 14 14 <div class="module"> 15 <h2>{% if library.grouper %}{{ library.grouper }}{% else %}Built-in filters{% endif%}</h2>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 18 <h3 id="{{ filter.name }}">{{ filter.name }}</h3> … … 33 33 {% regroup filters|dictsort:"library" by library as filter_libraries %} 34 34 {% for library in filter_libraries %} 35 35 <div class="module"> 36 <h2>{% if library.grouper %}{{ library.grouper }}{% else %}Built-in filters{% endif%}</h2>36 <h2>{% firstof library.grouper "Built-in filters" %}</h2> 37 37 <ul> 38 38 {% for filter in library.list|dictsort:"name" %} 39 39 <li><a href="#{{ filter.name }}">{{ filter.name }}</a></li>