aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBo Lopker2014-08-25 21:37:23 -0400
committertschilling2014-08-25 21:37:23 -0400
commit69bf1eb127f8c1b6b7c6c2e798ccd208293c1309 (patch)
tree4b5cbd66f89e38ae61df22da7ca14cb860247f9e
parente009bb394820c6753e6f6a36e9eb88fb61606248 (diff)
downloaddjango-debug-toolbar-69bf1eb127f8c1b6b7c6c2e798ccd208293c1309.tar.bz2
Remove css text-indent hack for back and close buttons.HEADmaster
Fixes #624. Remove text-index Remove old 'Back' text Remove 'close' text
-rw-r--r--debug_toolbar/static/debug_toolbar/css/toolbar.css1
-rw-r--r--debug_toolbar/static/debug_toolbar/js/toolbar.js4
-rw-r--r--debug_toolbar/templates/debug_toolbar/base.html2
-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
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 = '<div class="djDebugPanelTitle"><a class="djDebugClose djDebugBack" href="">Back</a><h3>'+xhr.status+': '+xhr.statusText+'</h3></div>';
+ var message = '<div class="djDebugPanelTitle"><a class="djDebugClose djDebugBack" href=""></a><h3>'+xhr.status+': '+xhr.statusText+'</h3></div>';
$('#djDebugWindow').html(message).show();
});
}
@@ -79,7 +79,7 @@
$.ajax(ajax_data).done(function(data){
$('#djDebugWindow').html(data).show();
}).fail(function(xhr){
- var message = '<div class="djDebugPanelTitle"><a class="djDebugClose djDebugBack" href="">Back</a><h3>'+xhr.status+': '+xhr.statusText+'</h3></div>';
+ var message = '<div class="djDebugPanelTitle"><a class="djDebugClose djDebugBack" href=""></a><h3>'+xhr.status+': '+xhr.statusText+'</h3></div>';
$('#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 %}
<div id="{{ panel.panel_id }}" class="djdt-panelContent">
<div class="djDebugPanelTitle">
- <a href="" class="djDebugClose">{% trans "Close" %}</a>
+ <a href="" class="djDebugClose"></a>
<h3>{{ panel.title|safe }}</h3>
</div>
<div class="djDebugPanelContent">
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 %}
<div class="djDebugPanelTitle">
- <a class="djDebugClose djDebugBack" href="">{% trans "Back" %}</a>
+ <a class="djDebugClose djDebugBack" href=""></a>
<h3>{% trans "SQL explained" %}</h3>
</div>
<div class="djDebugPanelContent">
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 %}
<div class="djDebugPanelTitle">
- <a class="djDebugClose djDebugBack" href="">{% trans "Back" %}</a>
+ <a class="djDebugClose djDebugBack" href=""></a>
<h3>{% trans "SQL profiled" %}</h3>
</div>
<div class="djDebugPanelContent">
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 %}
<div class="djDebugPanelTitle">
- <a class="djDebugClose djDebugBack" href="">{% trans "Back" %}</a>
+ <a class="djDebugClose djDebugBack" href=""></a>
<h3>{% trans "SQL selected" %}</h3>
</div>
<div class="djDebugPanelContent">
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 %}
<div class="djDebugPanelTitle">
- <a class="djDebugClose djDebugBack" href="">{% trans "Back" %}</a>
+ <a class="djDebugClose djDebugBack" href=""></a>
<h3>{% trans "Template source:" %} <code>{{ template_name }}</code></h3>
</div>
<div class="djDebugPanelContent">