Skip to content

Commit ca70c2b

Browse files
committed
Remove invalid href attribute from span elements
This was once an anchor, but was changed in ef9ac33.
1 parent 7ecd3c1 commit ca70c2b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

debug_toolbar/panels/sql/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ def reformat_sql(sql, with_toggle=False):
2424
if not with_toggle:
2525
return formatted
2626
simple = simplify(parse_sql(sql, aligned_indent=False))
27-
uncollapsed = '<span class="djDebugUncollapsed" href="#">{}</span>'.format(simple)
28-
collapsed = '<span class="djDebugCollapsed" href="#">{}</span>'.format(formatted)
27+
uncollapsed = '<span class="djDebugUncollapsed">{}</span>'.format(simple)
28+
collapsed = '<span class="djDebugCollapsed">{}</span>'.format(formatted)
2929
return collapsed + uncollapsed
3030

3131

debug_toolbar/static/debug_toolbar/css/toolbar.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,13 +354,11 @@
354354

355355
#djDebug .djDebugCollapsed {
356356
display: none;
357-
text-decoration: none;
358357
color: #333;
359358
}
360359

361360
#djDebug .djDebugUncollapsed {
362361
color: #333;
363-
text-decoration: none;
364362
}
365363

366364
#djDebug .djUnselected {

0 commit comments

Comments
 (0)