diff options
| author | Chris Lamb | 2009-10-14 14:34:25 +0100 |
|---|---|---|
| committer | Rob Hudson | 2009-11-02 12:57:13 -0800 |
| commit | 2826893441192b775b113cfc32f5b31a92bf5c4d (patch) | |
| tree | 2fa80086eed8c873eaa7eff0a094ea06e6c07434 /debug_toolbar/templates | |
| parent | 24bd1daa61a76d17c4328d56cadd707dc18338ef (diff) | |
| download | django-debug-toolbar-2826893441192b775b113cfc32f5b31a92bf5c4d.tar.bz2 | |
Move the stacktrace underneath the SQL - current column is too narrow
Signed-off-by: Chris Lamb <lamby@debian.org>
Signed-off-by: Rob Hudson <rob@cogit8.org>
Diffstat (limited to 'debug_toolbar/templates')
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/panels/sql.html | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html index c275bea..038deaf 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html @@ -26,27 +26,29 @@ <td> {% if query.stacktrace %} <div class="djSQLShowStacktraceDiv"><a class="djSQLShowStacktrace" href="#">Toggle Stacktrace</a></div> - <div class="djSQLHideStacktraceDiv" style="display:none;"> - <table> - <tr> - <th>{% trans "Line" %}</th> - <th>{% trans "Method" %}</th> - <th>{% trans "File" %}</th> - </tr> - {% for file, line, method in query.stacktrace %} - <tr> - <td>{{ line }}</td> - <td><pre>{{ method|escape }}<pre></td> - <td><pre>{{ file|escape }}</pre></td> - </tr> - {% endfor %} - </table> - </div> {% endif %} </td> <td class="syntax"> <div class="djDebugSqlWrap"> <div class="djDebugSql">{{ query.sql|safe }}</div> + {% if query.stacktrace %} + <div class="djSQLHideStacktraceDiv" style="display:none;"> + <table> + <tr> + <th>{% trans "Line" %}</th> + <th>{% trans "Method" %}</th> + <th>{% trans "File" %}</th> + </tr> + {% for file, line, method in query.stacktrace %} + <tr> + <td>{{ line }}</td> + <td><pre>{{ method|escape }}<pre></td> + <td><pre>{{ file|escape }}</pre></td> + </tr> + {% endfor %} + </table> + </div> + {% endif %} <span class="djDebugLineChart{% if query.is_slow %} djDebugLineChartWarning{% endif %}" style="width:{{ query.width_ratio }}%; left:{{ query.start_offset }}%;"></span> </div> </td> |
