aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/templates
diff options
context:
space:
mode:
authortschilling2014-06-17 21:13:24 -0400
committertschilling2014-06-17 21:13:24 -0400
commita450969f03449b909716073cfea6898aa56cf54a (patch)
tree168d0c3aa9b65f241d1bc77b59263cb874f892c4 /debug_toolbar/templates
parentf878ec075d94344e2b16c8d21832b422990f65fd (diff)
downloaddjango-debug-toolbar-a450969f03449b909716073cfea6898aa56cf54a.tar.bz2
Prefixing common CSS classes with djdt-
Diffstat (limited to 'debug_toolbar/templates')
-rw-r--r--debug_toolbar/templates/debug_toolbar/base.html12
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/cache.html4
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/profiling.html2
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/sql.html24
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/sql_explain.html2
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/sql_profile.html2
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/sql_select.html2
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/template_source.html2
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/timer.html2
9 files changed, 26 insertions, 26 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html
index d8fb933..aba0862 100644
--- a/debug_toolbar/templates/debug_toolbar/base.html
+++ b/debug_toolbar/templates/debug_toolbar/base.html
@@ -28,7 +28,7 @@
{% if panel.has_content and panel.enabled %}
<a href="#" title="{{ panel.title }}" class="{{ panel.panel_id }}">
{% else %}
- <div class="contentless{% if not panel.enabled %} disabled{% endif %}">
+ <div class="djdt-contentless{% if not panel.enabled %} djdt-disabled{% endif %}">
{% endif %}
{{ panel.nav_title }}
{% if panel.enabled %}
@@ -50,21 +50,21 @@
</div>
{% for panel in toolbar.panels %}
{% if panel.has_content and panel.enabled %}
- <div id="{{ panel.panel_id }}" class="panelContent">
+ <div id="{{ panel.panel_id }}" class="djdt-panelContent">
<div class="djDebugPanelTitle">
<a href="" class="djDebugClose">{% trans "Close" %}</a>
<h3>{{ panel.title|safe }}</h3>
</div>
<div class="djDebugPanelContent">
{% if toolbar.store_id %}
- <img src="{% static 'debug_toolbar/img/ajax-loader.gif' %}" alt="loading" class="loader" />
- <div class="scroll"></div>
+ <img src="{% static 'debug_toolbar/img/ajax-loader.gif' %}" alt="loading" class="djdt-loader" />
+ <div class="djdt-scroll"></div>
{% else %}
- <div class="scroll">{{ panel.content }}</div>
+ <div class="djdt-scroll">{{ panel.content }}</div>
{% endif %}
</div>
</div>
{% endif %}
{% endfor %}
- <div id="djDebugWindow" class="panelContent"></div>
+ <div id="djDebugWindow" class="djdt-panelContent"></div>
</div>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/cache.html b/debug_toolbar/templates/debug_toolbar/panels/cache.html
index 82ccc49..527306c 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/cache.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/cache.html
@@ -50,7 +50,7 @@
<tbody>
{% for call in calls %}
<tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}" id="cacheMain_{{ forloop.counter }}">
- <td class="toggle">
+ <td class="djdt-toggle">
<a class="djToggleSwitch" data-toggle-name="cacheMain" data-toggle-id="{{ forloop.counter }}" data-toggle-open="+" data-toggle-close="-" href="javascript:void(0)">+</a>
</td>
<td>{{ call.time|floatformat:"4" }}</td>
@@ -61,7 +61,7 @@
</tr>
<tr class="djUnselected djDebugHoverable {% cycle 'djDebugOdd' 'djDebugEven' %} djToggleDetails_{{ forloop.counter }}" id="cacheDetails_{{ forloop.counter }}">
<td colspan="1"></td>
- <td colspan="5"><pre class="stack">{{ call.trace }}</pre></td>
+ <td colspan="5"><pre class="djdt-stack">{{ call.trace }}</pre></td>
</tr>
{% endfor %}
</tbody>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/profiling.html b/debug_toolbar/templates/debug_toolbar/panels/profiling.html
index 3800f98..0475276 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/profiling.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/profiling.html
@@ -21,7 +21,7 @@
{% else %}
<span class="djNoToggleSwitch"></span>
{% endif %}
- <span class="stack">{{ call.func_std_string }}</span>
+ <span class="djdt-stack">{{ call.func_std_string }}</span>
</div>
</td>
<td>{{ call.cumtime|floatformat:3 }}</td>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html
index 7dab547..8c6725d 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html
@@ -1,10 +1,10 @@
{% load i18n l10n %}{% load static from staticfiles %}{% load url from future %}
-<div class="clearfix">
- <ul class="stats">
+<div class="djdt-clearfix">
+ <ul class="djdt-stats">
{% for alias, info in databases %}
<li>
- <strong class="label"><span style="background-color: rgb({{ info.rgb_color|join:", " }})" class="color">&#160;</span> {{ alias }}</strong>
- <span class="info">{{ info.time_spent|floatformat:"2" }} ms ({% blocktrans count info.num_queries as num %}{{ num }} query{% plural %}{{ num }} queries{% endblocktrans %})</span>
+ <strong class="djdt-label"><span style="background-color: rgb({{ info.rgb_color|join:", " }})" class="djdt-color">&#160;</span> {{ alias }}</strong>
+ <span class="djdt-info">{{ info.time_spent|floatformat:"2" }} ms ({% blocktrans count info.num_queries as num %}{{ num }} query{% plural %}{{ num }} queries{% endblocktrans %})</span>
</li>
{% endfor %}
</ul>
@@ -14,18 +14,18 @@
<table>
<thead>
<tr>
- <th class="color">&#160;</th>
+ <th class="djdt-color">&#160;</th>
<th class="query" colspan="2">{% trans "Query" %}</th>
<th class="timeline">{% trans "Timeline" %}</th>
- <th class="time">{% trans "Time (ms)" %}</th>
- <th class="actions">{% trans "Action" %}</th>
+ <th class="djdt-time">{% trans "Time (ms)" %}</th>
+ <th class="djdt-actions">{% trans "Action" %}</th>
</tr>
</thead>
<tbody>
{% for query in queries %}
<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:", " }});">&#160;</span></td>
- <td class="toggle">
+ <td class="djdt-color"><span style="background-color: rgb({{ query.rgb_color|join:", " }});">&#160;</span></td>
+ <td class="djdt-toggle">
<a class="djToggleSwitch" data-toggle-name="sqlMain" data-toggle-id="{{ forloop.counter }}" data-toggle-open="+" data-toggle-close="-" href="javascript:void(0)">+</a>
</td>
<td class="query">
@@ -36,10 +36,10 @@
<td class="timeline">
<div class="djDebugTimeline"><div class="djDebugLineChart{% if query.is_slow %} djDebugLineChartWarning{% endif %}" style="left:{{ query.start_offset|unlocalize }}%;"><strong style="width:{{ query.width_ratio_relative|unlocalize }}%; background-color:{{ query.trace_color }};">{{ query.width_ratio }}%</strong></div></div>
</td>
- <td class="time">
+ <td class="djdt-time">
{{ query.duration|floatformat:"2" }}
</td>
- <td class="actions">
+ <td class="djdt-actions">
{% if query.params %}
{% if query.is_select %}
@@ -69,7 +69,7 @@
<p><strong>{% trans "Transaction status:" %}</strong> {{ query.trans_status }}</p>
{% endif %}
{% if query.stacktrace %}
- <pre class="stack">{{ query.stacktrace }}</pre>
+ <pre class="djdt-stack">{{ query.stacktrace }}</pre>
{% endif %}
{% if query.template_info %}
<table>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html
index da9b120..30e6625 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html
@@ -4,7 +4,7 @@
<h3>{% trans "SQL explained" %}</h3>
</div>
<div class="djDebugPanelContent">
- <div class="scroll">
+ <div class="djdt-scroll">
<dl>
<dt>{% trans "Executed SQL" %}</dt>
<dd>{{ sql|safe }}</dd>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html
index af70d92..e6ba19b 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html
@@ -4,7 +4,7 @@
<h3>{% trans "SQL profiled" %}</h3>
</div>
<div class="djDebugPanelContent">
- <div class="scroll">
+ <div class="djdt-scroll">
{% if result %}
<dl>
<dt>{% trans "Executed SQL" %}</dt>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html
index 60882d3..e610b03 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html
@@ -4,7 +4,7 @@
<h3>{% trans "SQL selected" %}</h3>
</div>
<div class="djDebugPanelContent">
- <div class="scroll">
+ <div class="djdt-scroll">
<dl>
<dt>{% trans "Executed SQL" %}</dt>
<dd>{{ sql|safe }}</dd>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/template_source.html b/debug_toolbar/templates/debug_toolbar/panels/template_source.html
index f827d1a..01c7f2d 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/template_source.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/template_source.html
@@ -4,7 +4,7 @@
<h3>{% trans "Template source:" %} <code>{{ template_name }}</code></h3>
</div>
<div class="djDebugPanelContent">
- <div class="scroll">
+ <div class="djdt-scroll">
{% if not source.pygmentized %}
<code>{{ source }}</code>
{% else %}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/timer.html b/debug_toolbar/templates/debug_toolbar/panels/timer.html
index cab0648..988c715 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/timer.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/timer.html
@@ -34,7 +34,7 @@
<tr>
<th>{% trans "Timing attribute" %}</th>
<th class="timeline">{% trans "Timeline" %}</th>
- <th class="time">{% trans "Milliseconds since navigation start (+length)" %}</th>
+ <th class="djdt-time">{% trans "Milliseconds since navigation start (+length)" %}</th>
</tr>
</thead>
<tbody id="djDebugBrowserTimingTableBody">