Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #825; thanks for the suggestions, aaronsw

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1276 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 3bbc2bd09153b84f20aa04b4b28784515a0a429d 1 parent 33ffa72
Jacob Kaplan-Moss authored November 17, 2005

Showing 1 changed file with 6 additions and 5 deletions. Show diff stats Hide diff stats

  1. 11  django/views/debug.py
11  django/views/debug.py
@@ -131,8 +131,9 @@ def _get_lines_from_file(filename, lineno, context_lines):
131 131
     ul.traceback li.frame { margin-bottom:1em; }
132 132
     div.context { margin: 10px 0; }
133 133
     div.context ol { padding-left:30px; margin:0 10px; list-style-position: inside; }
134  
-    div.context ol li { font-family:monospace; white-space:pre; color:#666; }
135  
-    div.context ol.context-line li { color:black; background-color:#ccc; cursor:pointer; }
  134
+    div.context ol li { font-family:monospace; white-space:pre; color:#666; cursor:pointer; }
  135
+    div.context ol.context-line li { color:black; background-color:#ccc; }
  136
+    div.context ol.context-line li span { float: right; }
136 137
     div.commands { margin-left: 40px; }
137 138
     div.commands a { color:black; text-decoration:none; }
138 139
     #summary { background: #ffc; }
@@ -231,11 +232,11 @@ def _get_lines_from_file(filename, lineno, context_lines):
231 232
         {% if frame.context_line %}
232 233
           <div class="context" id="c{{ frame.id }}">
233 234
             {% if frame.pre_context %}
234  
-              <ol start="{{ frame.pre_context_lineno }}" class="pre-context" id="pre{{ frame.id }}">{% for line in frame.pre_context %}<li>{{ line|escape }}</li>{% endfor %}</ol>
  235
+              <ol start="{{ frame.pre_context_lineno }}" class="pre-context" id="pre{{ frame.id }}">{% for line in frame.pre_context %}<li onclick="toggle('pre{{ frame.id }}', 'post{{ frame.id }}')">{{ line|escape }}</li>{% endfor %}</ol>
235 236
             {% endif %}
236  
-            <ol start="{{ frame.lineno }}" class="context-line"><li onclick="toggle('pre{{ frame.id }}', 'post{{ frame.id }}')">{{ frame.context_line|escape }}</li></ol>
  237
+            <ol start="{{ frame.lineno }}" class="context-line"><li onclick="toggle('pre{{ frame.id }}', 'post{{ frame.id }}')">{{ frame.context_line|escape }} <span>...</span></li></ol>
237 238
             {% if frame.post_context %}
238  
-              <ol start='{{ frame.lineno|add:"1" }}' class="post-context" id="post{{ frame.id }}">{% for line in frame.post_context %}<li>{{ line|escape }}</li>{% endfor %}</ol>
  239
+              <ol start='{{ frame.lineno|add:"1" }}' class="post-context" id="post{{ frame.id }}">{% for line in frame.post_context %}<li onclick="toggle('pre{{ frame.id }}', 'post{{ frame.id }}')">{{ line|escape }}</li>{% endfor %}</ol>
239 240
             {% endif %}
240 241
           </div>
241 242
         {% endif %}

0 notes on commit 3bbc2bd

Please sign in to comment.
Something went wrong with that request. Please try again.