aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/templates
diff options
context:
space:
mode:
authorDavid Cramer2011-04-22 14:59:59 -0700
committerDavid Cramer2011-04-22 14:59:59 -0700
commita3e8ce8eb1c4e2d1482a22d3a7e0dba7f4ff3201 (patch)
treec6d3c5a078787f017ce81e6952505935c2305be8 /debug_toolbar/templates
parent249247f9c7a5027d444471526859ee86c06a1f1a (diff)
downloaddjango-debug-toolbar-a3e8ce8eb1c4e2d1482a22d3a7e0dba7f4ff3201.tar.bz2
Basic support for toggling everywhere correctly
Diffstat (limited to 'debug_toolbar/templates')
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/profiling.html6
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/sql.html2
2 files changed, 6 insertions, 2 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/profiling.html b/debug_toolbar/templates/debug_toolbar/panels/profiling.html
index 61e72da..ebc91cc 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/profiling.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/profiling.html
@@ -17,7 +17,11 @@
<tr id="{{ call.id }}" class="djDebugProfileRow{% for parent_id in call.parent_ids %} djToggleDetails_{{ parent_id }}{% endfor %}" depth="{{ call.depth }}">
<td>
<div style="padding-left: {{ call.indent }}px;">
- <a class="djProfileToggleDetails djToggleSwitch" data-toggle-id="{{ call.id }}" href="javascript:void(0)">+</a>
+ {% if call.has_subfuncs %}
+ <a class="djProfileToggleDetails djToggleSwitch" data-toggle-id="{{ call.id }}" data-toggle-open="+" data-toggle-close="-" href="javascript:void(0)">-</a>
+ {% else %}
+ <span class="djNoToggleSwitch"></span>
+ {% endif %}
<span class="stack">{{ call.func_std_string }}</span>
</div>
</td>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html
index ff05a9f..f904e15 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html
@@ -26,7 +26,7 @@
<tr class="djDebugHoverable {% cycle 'djDebugOdd' 'djDebugEven' %}{% if query.is_slow %} djDebugRowWarning{% endif %}{% if query.starts_trans %} djDebugStartTransaction{% endif %}{% if query.ends_trans %} djDebugEndTransaction{% endif %}{% if query.in_trans %} djDebugInTransaction{% endif %}" id="sqlMain_{{ forloop.counter }}">
<td class="color"><span style="background-color: rgb({{ query.rgb_color|join:", " }});">&nbsp;</span></td>
<td class="toggle">
- <a class="djToggleSwitch" data-toggle-id="{{ forloop.counter }}" href="javascript:void(0)">+</a>
+ <a class="djToggleSwitch" data-toggle-id="{{ forloop.counter }}" data-toggle-open="+" data-toggle-close="-" href="javascript:void(0)">+</a>
</td>
<td class="query">
<div class="djDebugSqlWrap">