Standardized formatting in technical 500 template.

- Prefer use of `k` and `v` instead of `var.0` and `var.1`.
- Fixed indentation of #files-info block to match adjacent blocks.
This commit is contained in:
Nick Pope 2021-04-22 16:43:26 +01:00 committed by Mariusz Felisiak
parent f2dd652245
commit 390832e04a
1 changed files with 21 additions and 21 deletions

View File

@ -390,6 +390,7 @@ Exception Value: {{ exception_value|force_escape }}
{% else %}
<p>No POST data</p>
{% endif %}
<h3 id="files-info">FILES</h3>
{% if request.FILES %}
<table class="req">
@ -412,7 +413,6 @@ Exception Value: {{ exception_value|force_escape }}
<p>No FILES data</p>
{% endif %}
<h3 id="cookie-info">COOKIES</h3>
{% if request.COOKIES %}
<table class="req">
@ -444,10 +444,10 @@ Exception Value: {{ exception_value|force_escape }}
</tr>
</thead>
<tbody>
{% for var in request_meta.items|dictsort:0 %}
{% for k, v in request_meta.items|dictsort:0 %}
<tr>
<td>{{ var.0 }}</td>
<td class="code"><pre>{{ var.1|pprint }}</pre></td>
<td>{{ k }}</td>
<td class="code"><pre>{{ v|pprint }}</pre></td>
</tr>
{% endfor %}
</tbody>
@ -466,10 +466,10 @@ Exception Value: {{ exception_value|force_escape }}
</tr>
</thead>
<tbody>
{% for var in settings.items|dictsort:0 %}
{% for k, v in settings.items|dictsort:0 %}
<tr>
<td>{{ var.0 }}</td>
<td class="code"><pre>{{ var.1|pprint }}</pre></td>
<td>{{ k }}</td>
<td class="code"><pre>{{ v|pprint }}</pre></td>
</tr>
{% endfor %}
</tbody>