Fixed #823 - cleaned up invalid HTML in debug error template. Thanks, Sune

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1273 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2005-11-17 14:19:33 +00:00
parent b1603563a3
commit bb505a87ac
1 changed files with 10 additions and 8 deletions

View File

@ -145,6 +145,7 @@ TECHNICAL_500_TEMPLATE = """
#requestinfo h3 { margin-bottom:-1em; } #requestinfo h3 { margin-bottom:-1em; }
</style> </style>
<script type="text/javascript"> <script type="text/javascript">
//<!--
function getElementsByClassName(oElm, strTagName, strClassName){ function getElementsByClassName(oElm, strTagName, strClassName){
// Written by Jonathan Snook, http://www.snook.ca/jon; Add-ons by Robert Nyman, http://www.robertnyman.com // Written by Jonathan Snook, http://www.snook.ca/jon; Add-ons by Robert Nyman, http://www.robertnyman.com
var arrElements = (strTagName == "*" && document.all)? document.all : var arrElements = (strTagName == "*" && document.all)? document.all :
@ -188,6 +189,7 @@ TECHNICAL_500_TEMPLATE = """
s.innerHTML = s.innerHTML == uarr ? darr : uarr; s.innerHTML = s.innerHTML == uarr ? darr : uarr;
return false; return false;
} }
//-->
</script> </script>
</head> </head>
<body> <body>
@ -276,7 +278,7 @@ TECHNICAL_500_TEMPLATE = """
<th>Value</th> <th>Value</th>
</tr> </tr>
</thead> </thead>
</tbody> <tbody>
{% for var in request.GET.items %} {% for var in request.GET.items %}
<tr> <tr>
<td>{{ var.0 }}</td> <td>{{ var.0 }}</td>
@ -286,7 +288,7 @@ TECHNICAL_500_TEMPLATE = """
</tbody> </tbody>
</table> </table>
{% else %} {% else %}
<p>No GET data<p> <p>No GET data</p>
{% endif %} {% endif %}
<h3 id="post-info">POST</h3> <h3 id="post-info">POST</h3>
@ -298,7 +300,7 @@ TECHNICAL_500_TEMPLATE = """
<th>Value</th> <th>Value</th>
</tr> </tr>
</thead> </thead>
</tbody> <tbody>
{% for var in request.POST.items %} {% for var in request.POST.items %}
<tr> <tr>
<td>{{ var.0 }}</td> <td>{{ var.0 }}</td>
@ -308,7 +310,7 @@ TECHNICAL_500_TEMPLATE = """
</tbody> </tbody>
</table> </table>
{% else %} {% else %}
<p>No POST data<p> <p>No POST data</p>
{% endif %} {% endif %}
<h3 id="cookie-info">COOKIES</h3> <h3 id="cookie-info">COOKIES</h3>
@ -320,7 +322,7 @@ TECHNICAL_500_TEMPLATE = """
<th>Value</th> <th>Value</th>
</tr> </tr>
</thead> </thead>
</tbody> <tbody>
{% for var in request.COOKIES.items %} {% for var in request.COOKIES.items %}
<tr> <tr>
<td>{{ var.0 }}</td> <td>{{ var.0 }}</td>
@ -330,7 +332,7 @@ TECHNICAL_500_TEMPLATE = """
</tbody> </tbody>
</table> </table>
{% else %} {% else %}
<p>No cookie data<p> <p>No cookie data</p>
{% endif %} {% endif %}
<h3 id="meta-info">META</h3> <h3 id="meta-info">META</h3>
@ -341,7 +343,7 @@ TECHNICAL_500_TEMPLATE = """
<th>Value</th> <th>Value</th>
</tr> </tr>
</thead> </thead>
</tbody> <tbody>
{% for var in request.META.items|dictsort:"0" %} {% for var in request.META.items|dictsort:"0" %}
<tr> <tr>
<td>{{ var.0 }}</td> <td>{{ var.0 }}</td>
@ -360,7 +362,7 @@ TECHNICAL_500_TEMPLATE = """
<th>Value</th> <th>Value</th>
</tr> </tr>
</thead> </thead>
</tbody> <tbody>
{% for var in settings.items|dictsort:"0" %} {% for var in settings.items|dictsort:"0" %}
<tr> <tr>
<td>{{ var.0 }}</td> <td>{{ var.0 }}</td>