diff --git a/debug_toolbar/static/debug_toolbar/js/toolbar.js b/debug_toolbar/static/debug_toolbar/js/toolbar.js index fff7a2f41..487e9c68d 100644 --- a/debug_toolbar/static/debug_toolbar/js/toolbar.js +++ b/debug_toolbar/static/debug_toolbar/js/toolbar.js @@ -312,12 +312,6 @@ return value; } }, - applyStyle: function(name) { - var selector = '#djDebug [data-' + name + ']'; - document.querySelectorAll(selector).forEach(function(element) { - element.style[name] = element.getAttribute('data-' + name); - }); - } }; window.djdt = { show_toolbar: djdt.show_toolbar, @@ -325,7 +319,6 @@ init: djdt.init, close: djdt.hide_one_level, cookie: djdt.cookie, - applyStyle: djdt.applyStyle }; document.addEventListener('DOMContentLoaded', djdt.init); })(); diff --git a/debug_toolbar/static/debug_toolbar/js/toolbar.profiling.js b/debug_toolbar/static/debug_toolbar/js/toolbar.profiling.js deleted file mode 100644 index 5823cfbcd..000000000 --- a/debug_toolbar/static/debug_toolbar/js/toolbar.profiling.js +++ /dev/null @@ -1,3 +0,0 @@ -(function () { - djdt.applyStyle('padding-left'); -})(); diff --git a/debug_toolbar/static/debug_toolbar/js/toolbar.sql.js b/debug_toolbar/static/debug_toolbar/js/toolbar.sql.js deleted file mode 100644 index 65093c8ee..000000000 --- a/debug_toolbar/static/debug_toolbar/js/toolbar.sql.js +++ /dev/null @@ -1,5 +0,0 @@ -(function () { - djdt.applyStyle('background-color'); - djdt.applyStyle('left'); - djdt.applyStyle('width'); -})(); diff --git a/debug_toolbar/templates/debug_toolbar/panels/profiling.html b/debug_toolbar/templates/debug_toolbar/panels/profiling.html index 953f8477f..4073cff41 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/profiling.html +++ b/debug_toolbar/templates/debug_toolbar/panels/profiling.html @@ -14,7 +14,7 @@ {% for call in func_list %} -
+
{% if call.has_subfuncs %} - {% else %} @@ -32,5 +32,3 @@ {% endfor %} - - diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html index da7e161a2..9dbb6827e 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html @@ -3,7 +3,7 @@
{% if query.similar_count %} -   +   {% blocktrans with count=query.similar_count %}{{ count }} similar queries.{% endblocktrans %} {% endif %} {% if query.duplicate_count %} -   +   {% blocktrans with dupes=query.duplicate_count %}Duplicated {{ dupes }} times.{% endblocktrans %} {% endif %} -
{{ query.width_ratio }}%
+
{{ query.width_ratio }}%
{{ query.duration|floatformat:"2" }} @@ -113,5 +113,3 @@ {% else %}

{% trans "No SQL queries were recorded during this request." %}

{% endif %} - - diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html index 0c6124c41..2f8d90c1f 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html @@ -33,5 +33,3 @@

{% trans "SQL explained" %}

- - diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html index 8b1f711cf..109b18d2d 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html @@ -40,5 +40,3 @@

{% trans "SQL profiled" %}

{% endif %} - - diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html index 6c3765163..b70a15223 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html @@ -37,5 +37,3 @@

{% trans "SQL selected" %}

{% endif %} - -