File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
templates/template_profiler_panel Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ class TemplateProfilerPanel(Panel):
54
54
'''
55
55
56
56
template = 'template_profiler_panel/template.html'
57
+ scripts = ["static/js/template_profiler.js" ]
57
58
58
59
def __init__ (self , * args , ** kwargs ):
59
60
self .colors = {}
Original file line number Diff line number Diff line change
1
+
2
+ $ ( ".timeline_item" ) . mouseover ( function ( ) {
3
+ $ ( this ) . css ( "border" , "red 0.1px solid" ) ;
4
+ } ) . mouseout ( function ( ) {
5
+ $ ( this ) . css ( "border" , "none" ) ;
6
+ } ) ;
Original file line number Diff line number Diff line change @@ -50,14 +50,15 @@ <h4>{{ templates|length }} {% trans 'calls to Template.render()' %}</h4>
50
50
Duration {{ time_item.duration|floatformat:2 }} ms
51
51
{% if time_item.position %}Lines {{ time_item.position.0 }} - {{ time_item.position.1 }}{% endif %}
52
52
Depth {{ time_item.level|add:1 }}
53
- " style ="
53
+ "
54
+ class ="timeline_item "
55
+ style ="
54
56
min-width: 1px;
55
57
margin-left: {{ time_item.offset_p|stringformat:'f' }}%;
56
58
width: {{ time_item.rel_duration_p|stringformat:'f' }}%;
57
59
background-color: {{ time_item.bg_color }};
58
60
top: calc({{ time_item.level }}px * 18);
59
61
position: absolute;
60
- {# border: red 0.1px solid; #}
61
62
opacity: 0.9;
62
63
"> </ span >
63
64
{% endfor %}
You can’t perform that action at this time.
0 commit comments