Ticket #4971: databrowse-escape.diff
File databrowse-escape.diff, 4.1 KB (added by , 17 years ago) |
---|
-
django/contrib/databrowse/templates/databrowse/choice_detail.html
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 }}</a></li>13 <li class="{% cycle odd,even %}"><a href="{{ object.url }}">{{ object|escape }}</a></li> 14 14 {% endfor %} 15 15 </ul> 16 16 -
django/contrib/databrowse/templates/databrowse/calendar_month.html
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 }}</a></li>13 <li class="{% cycle odd,even %}"><a href="{{ object.url }}">{{ object|escape }}</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 }}</a></li>15 <li class="{% cycle odd,even %}"><a href="{{ object.url }}">{{ object|escape }}</a></li> 16 16 {% endfor %} 17 17 </ul> 18 18 -
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 }}</a></li>13 <li class="{% cycle odd,even %}"><a href="{{ choice.url }}">{{ choice.label|escape }}</a></li> 14 14 {% endfor %} 15 15 </ul> 16 16 -
django/contrib/databrowse/templates/databrowse/calendar_day.html
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 }}</a></li>13 <li class="{% cycle odd,even %}"><a href="{{ object.url }}">{{ object|escape }}</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 }}</div>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> 8 8 9 <h1>{{ object.model.verbose_name|capfirst }}: {{ object }}</h1>9 <h1>{{ object.model.verbose_name|capfirst }}: {{ object|escape }}</h1> 10 10 11 11 <table class="objectinfo"> 12 12 {% for field in object.fields %} … … 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 }}</a></li>32 <li class="{% cycle odd,even %}"><a href="{{ object.url }}">{{ object|escape }}</a></li> 33 33 {% endfor %} 34 34 </ul> 35 35 {% else %}