344 | | <ul class="traceback"> |
345 | | {% for frame in frames %} |
346 | | <li class="frame"> |
347 | | <code>{{ frame.filename }}</code> in <code>{{ frame.function }}</code> |
348 | | |
349 | | {% if frame.context_line %} |
350 | | <div class="context" id="c{{ frame.id }}"> |
351 | | {% if frame.pre_context %} |
352 | | <ol start="{{ frame.pre_context_lineno|add:"1" }}" 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> |
353 | | {% endif %} |
354 | | <ol start="{{ frame.lineno|add:"1" }}" class="context-line"><li onclick="toggle('pre{{ frame.id }}', 'post{{ frame.id }}')">{{ frame.context_line|escape }} <span>...</span></li></ol> |
355 | | {% if frame.post_context %} |
356 | | <ol start='{{ frame.lineno|add:"2" }}' 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> |
357 | | {% endif %} |
358 | | </div> |
359 | | {% endif %} |
360 | | |
361 | | {% if frame.vars %} |
362 | | <div class="commands"> |
363 | | <a href="#" onclick="return varToggle(this, '{{ frame.id }}')"><span>▶</span> Local vars</a> |
364 | | </div> |
365 | | <table class="vars" id="v{{ frame.id }}"> |
366 | | <thead> |
367 | | <tr> |
368 | | <th>Variable</th> |
369 | | <th>Value</th> |
370 | | </tr> |
371 | | </thead> |
372 | | <tbody> |
373 | | {% for var in frame.vars|dictsort:"0" %} |
| 353 | <div class="commands"><a href="#" onclick="return switchPastebinFriendly(this);">switch to pastebin friendly</a></div> |
| 354 | <br/> |
| 355 | <div id="browserTraceback"> |
| 356 | <ul class="traceback"> |
| 357 | {% for frame in frames %} |
| 358 | <li class="frame"> |
| 359 | <code>{{ frame.filename }}</code> in <code>{{ frame.function }}</code> |
| 360 | |
| 361 | {% if frame.context_line %} |
| 362 | <div class="context" id="c{{ frame.id }}"> |
| 363 | {% if frame.pre_context %} |
| 364 | <ol start="{{ frame.pre_context_lineno|add:"1" }}" 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> |
| 365 | {% endif %} |
| 366 | <ol start="{{ frame.lineno|add:"1" }}" class="context-line"><li onclick="toggle('pre{{ frame.id }}', 'post{{ frame.id }}')">{{ frame.context_line|escape }} <span>...</span></li></ol> |
| 367 | {% if frame.post_context %} |
| 368 | <ol start='{{ frame.lineno|add:"2" }}' 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> |
| 369 | {% endif %} |
| 370 | </div> |
| 371 | {% endif %} |
| 372 | |
| 373 | {% if frame.vars %} |
| 374 | <div class="commands"> |
| 375 | <a href="#" onclick="return varToggle(this, '{{ frame.id }}')"><span>▶</span> Local vars</a> |
| 376 | </div> |
| 377 | <table class="vars" id="v{{ frame.id }}"> |
| 378 | <thead> |