From 3bbc2bd09153b84f20aa04b4b28784515a0a429d Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Thu, 17 Nov 2005 15:27:19 +0000 Subject: [PATCH] Fixed #825; thanks for the suggestions, aaronsw git-svn-id: http://code.djangoproject.com/svn/django/trunk@1276 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/views/debug.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/django/views/debug.py b/django/views/debug.py index 047ee2d553..0ddaa44a7f 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -131,8 +131,9 @@ TECHNICAL_500_TEMPLATE = """ ul.traceback li.frame { margin-bottom:1em; } div.context { margin: 10px 0; } div.context ol { padding-left:30px; margin:0 10px; list-style-position: inside; } - div.context ol li { font-family:monospace; white-space:pre; color:#666; } - div.context ol.context-line li { color:black; background-color:#ccc; cursor:pointer; } + div.context ol li { font-family:monospace; white-space:pre; color:#666; cursor:pointer; } + div.context ol.context-line li { color:black; background-color:#ccc; } + div.context ol.context-line li span { float: right; } div.commands { margin-left: 40px; } div.commands a { color:black; text-decoration:none; } #summary { background: #ffc; } @@ -231,11 +232,11 @@ TECHNICAL_500_TEMPLATE = """ {% if frame.context_line %}
{% if frame.pre_context %} -
    {% for line in frame.pre_context %}
  1. {{ line|escape }}
  2. {% endfor %}
+
    {% for line in frame.pre_context %}
  1. {{ line|escape }}
  2. {% endfor %}
{% endif %} -
  1. {{ frame.context_line|escape }}
+
  1. {{ frame.context_line|escape }} ...
{% if frame.post_context %} -
    {% for line in frame.post_context %}
  1. {{ line|escape }}
  2. {% endfor %}
+
    {% for line in frame.post_context %}
  1. {{ line|escape }}
  2. {% endfor %}
{% endif %}
{% endif %}