From 69bf1eb127f8c1b6b7c6c2e798ccd208293c1309 Mon Sep 17 00:00:00 2001 From: Bo Lopker Date: Mon, 25 Aug 2014 21:37:23 -0400 Subject: Remove css text-indent hack for back and close buttons. Fixes #624. Remove text-index Remove old 'Back' text Remove 'close' text --- debug_toolbar/static/debug_toolbar/css/toolbar.css | 1 - debug_toolbar/static/debug_toolbar/js/toolbar.js | 4 ++-- debug_toolbar/templates/debug_toolbar/base.html | 2 +- debug_toolbar/templates/debug_toolbar/panels/sql_explain.html | 2 +- debug_toolbar/templates/debug_toolbar/panels/sql_profile.html | 2 +- debug_toolbar/templates/debug_toolbar/panels/sql_select.html | 2 +- debug_toolbar/templates/debug_toolbar/panels/template_source.html | 2 +- 7 files changed, 7 insertions(+), 8 deletions(-) diff --git a/debug_toolbar/static/debug_toolbar/css/toolbar.css b/debug_toolbar/static/debug_toolbar/css/toolbar.css index 235b277..a02768f 100644 --- a/debug_toolbar/static/debug_toolbar/css/toolbar.css +++ b/debug_toolbar/static/debug_toolbar/css/toolbar.css @@ -370,7 +370,6 @@ */ #djDebug .djdt-panelContent .djDebugClose { - text-indent:-9999999px; display:block; position:absolute; top:4px; diff --git a/debug_toolbar/static/debug_toolbar/js/toolbar.js b/debug_toolbar/static/debug_toolbar/js/toolbar.js index de46c02..aacffc2 100644 --- a/debug_toolbar/static/debug_toolbar/js/toolbar.js +++ b/debug_toolbar/static/debug_toolbar/js/toolbar.js @@ -34,7 +34,7 @@ inner.prev().remove(); // Remove AJAX loader inner.html(data); }).fail(function(xhr){ - var message = '
Back

'+xhr.status+': '+xhr.statusText+'

'; + var message = '

'+xhr.status+': '+xhr.statusText+'

'; $('#djDebugWindow').html(message).show(); }); } @@ -79,7 +79,7 @@ $.ajax(ajax_data).done(function(data){ $('#djDebugWindow').html(data).show(); }).fail(function(xhr){ - var message = '
Back

'+xhr.status+': '+xhr.statusText+'

'; + var message = '

'+xhr.status+': '+xhr.statusText+'

'; $('#djDebugWindow').html(message).show(); }); diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html index aba0862..c646283 100644 --- a/debug_toolbar/templates/debug_toolbar/base.html +++ b/debug_toolbar/templates/debug_toolbar/base.html @@ -52,7 +52,7 @@ {% if panel.has_content and panel.enabled %}
- {% trans "Close" %} +

{{ panel.title|safe }}

diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html index 30e6625..0fa30ab 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html @@ -1,6 +1,6 @@ {% load i18n %}{% load static from staticfiles %}
- {% trans "Back" %} +

{% 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 e6ba19b..e5813c6 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html @@ -1,6 +1,6 @@ {% load i18n %}{% load static from staticfiles %}
- {% trans "Back" %} +

{% trans "SQL profiled" %}

diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html index e610b03..50cd0b1 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html @@ -1,6 +1,6 @@ {% load i18n %}{% load static from staticfiles %}
- {% trans "Back" %} +

{% trans "SQL selected" %}

diff --git a/debug_toolbar/templates/debug_toolbar/panels/template_source.html b/debug_toolbar/templates/debug_toolbar/panels/template_source.html index 01c7f2d..7914f2e 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/template_source.html +++ b/debug_toolbar/templates/debug_toolbar/panels/template_source.html @@ -1,6 +1,6 @@ {% load i18n %}
- {% trans "Back" %} +

{% trans "Template source:" %} {{ template_name }}

-- cgit v1.2.3