File tree 5 files changed +22
-18
lines changed
templates/debug_toolbar/panels 5 files changed +22
-18
lines changed Original file line number Diff line number Diff line change 514
514
color : # 333 ;
515
515
} /* Comment.Preproc */
516
516
517
- # djDebug .djdt-timeline {
518
- width : 30% ;
519
- }
520
-
521
517
# djDebug svg .djDebugLineChart {
522
518
width : 100% ;
523
519
height : 1.5em ;
534
530
stroke : # 94b24d ;
535
531
}
536
532
537
- # djDebug .djdt-panelContent thead th {
538
- white-space : nowrap;
539
- }
540
533
# djDebug .djDebugRowWarning .djdt-time {
541
534
color : red;
542
535
}
602
595
# djDebug .djdt-width-20 {
603
596
width : 20% ;
604
597
}
598
+ # djDebug .djdt-width-30 {
599
+ width : 30% ;
600
+ }
605
601
# djDebug .djdt-width-60 {
606
602
width : 60% ;
607
603
}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ function addRow(stat, endStat) {
20
20
"<td>" +
21
21
stat . replace ( "Start" , "" ) +
22
22
"</td>" +
23
- '<td class="djdt-timeline" ><svg class="djDebugLineChart" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 100 5" preserveAspectRatio="none"><rect y="0" height="5" fill="#ccc" /></svg></td>' +
23
+ '<td><svg class="djDebugLineChart" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 100 5" preserveAspectRatio="none"><rect y="0" height="5" fill="#ccc" /></svg></td>' +
24
24
"<td>" +
25
25
( performance . timing [ stat ] - timingOffset ) +
26
26
" (+" +
@@ -36,7 +36,7 @@ function addRow(stat, endStat) {
36
36
"<td>" +
37
37
stat +
38
38
"</td>" +
39
- '<td class="djdt-timeline" ><svg class="djDebugLineChart" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 100 5" preserveAspectRatio="none"><rect y="0" height="5" fill="#ccc" /></svg></td>' +
39
+ '<td><svg class="djDebugLineChart" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 100 5" preserveAspectRatio="none"><rect y="0" height="5" fill="#ccc" /></svg></td>' +
40
40
"<td>" +
41
41
( performance . timing [ stat ] - timingOffset ) +
42
42
"</td>" ;
Original file line number Diff line number Diff line change 10
10
< th > {% trans "Method" %}</ th >
11
11
< th > {% trans "Path" %}</ th >
12
12
< th > {% trans "Request Variables" %}</ th >
13
- < th class =" djdt-actions " > {% trans "Action" %}</ th >
13
+ < th > {% trans "Action" %}</ th >
14
14
</ tr >
15
15
</ thead >
16
16
< tbody id ="djdtHistoryRequests ">
Original file line number Diff line number Diff line change 20
20
21
21
{% if queries %}
22
22
< table >
23
+ < colgroup >
24
+ < col >
25
+ < col >
26
+ < col >
27
+ < col class ="djdt-width-30 ">
28
+ < col >
29
+ < col >
30
+ </ colgroup >
23
31
< thead >
24
32
< tr >
25
33
< th > </ th >
26
- < th class =" djdt-query " colspan ="2 "> {% trans "Query" %}</ th >
27
- < th class =" djdt-timeline " > {% trans "Timeline" %}</ th >
28
- < th class =" djdt-time " > {% trans "Time (ms)" %}</ th >
29
- < th class =" djdt-actions " > {% trans "Action" %}</ th >
34
+ < th colspan ="2 "> {% trans "Query" %}</ th >
35
+ < th > {% trans "Timeline" %}</ th >
36
+ < th > {% trans "Time (ms)" %}</ th >
37
+ < th > {% trans "Action" %}</ th >
30
38
</ tr >
31
39
</ thead >
32
40
< tbody >
36
44
< td class ="djdt-toggle ">
37
45
< button type ="button " class ="djToggleSwitch " data-toggle-name ="sqlMain " data-toggle-id ="{{ forloop.counter }} "> +</ button >
38
46
</ td >
39
- < td class =" djdt-query " >
47
+ < td >
40
48
< div class ="djDebugSql "> {{ query.sql|safe }}</ div >
41
49
{% if query.similar_count %}
42
50
< strong >
51
59
</ strong >
52
60
{% endif %}
53
61
</ td >
54
- < td class =" djdt-timeline " >
62
+ < td >
55
63
< svg class ="djDebugLineChart{% if query.is_slow %} djDebugLineChartWarning{% endif %}{% if query.in_trans %} djDebugLineChartInTransaction{% endif %} " xmlns ="http://www.w3.org/2000/svg " viewbox ="0 0 100 5 " preserveAspectRatio ="none " aria-label ="{{ query.width_ratio }}% ">
56
64
< rect x ="{{ query.start_offset|unlocalize }} " y ="0 " height ="5 " width ="{{ query.width_ratio|unlocalize }} " fill ="{{ query.trace_color }} " />
57
65
{% if query.starts_trans %}
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ <h4>{% trans "Browser timing" %}</h4>
33
33
< thead >
34
34
< tr >
35
35
< th > {% trans "Timing attribute" %}</ th >
36
- < th class =" djdt-timeline " > {% trans "Timeline" %}</ th >
37
- < th class =" djdt-time " > {% trans "Milliseconds since navigation start (+length)" %}</ th >
36
+ < th > {% trans "Timeline" %}</ th >
37
+ < th > {% trans "Milliseconds since navigation start (+length)" %}</ th >
38
38
</ tr >
39
39
</ thead >
40
40
< tbody id ="djDebugBrowserTimingTableBody ">
You can’t perform that action at this time.
0 commit comments