|
3 | 3 | <ul class="djdt-stats">
|
4 | 4 | {% for alias, info in databases %}
|
5 | 5 | <li>
|
6 |
| - <strong class="djdt-label"><span data-background-color="rgb({{ info.rgb_color|join:", " }})" class="djdt-color"> </span> {{ alias }}</strong> |
| 6 | + <strong class="djdt-label"><span style="background-color:rgb({{ info.rgb_color|join:', ' }})" class="djdt-color"> </span> {{ alias }}</strong> |
7 | 7 | <span class="djdt-info">{{ info.time_spent|floatformat:"2" }} ms ({% blocktrans count info.num_queries as num %}{{ num }} query{% plural %}{{ num }} queries{% endblocktrans %}
|
8 | 8 | {% if info.similar_count %}
|
9 | 9 | {% blocktrans with count=info.similar_count trimmed %}
|
|
34 | 34 | <tbody>
|
35 | 35 | {% for query in queries %}
|
36 | 36 | <tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}{% if query.is_slow %} djDebugRowWarning{% endif %}{% if query.starts_trans %} djDebugStartTransaction{% endif %}{% if query.ends_trans %} djDebugEndTransaction{% endif %}{% if query.in_trans %} djDebugInTransaction{% endif %}" id="sqlMain_{{ forloop.counter }}">
|
37 |
| - <td class="djdt-color"><span data-background-color="rgb({{ query.rgb_color|join:", " }})"> </span></td> |
| 37 | + <td class="djdt-color"><span style="background-color:rgb({{ query.rgb_color|join:', '}})"> </span></td> |
38 | 38 | <td class="djdt-toggle">
|
39 | 39 | <a class="djToggleSwitch" data-toggle-name="sqlMain" data-toggle-id="{{ forloop.counter }}" data-toggle-open="+" data-toggle-close="-" href="">+</a>
|
40 | 40 | </td>
|
|
44 | 44 | </div>
|
45 | 45 | {% if query.similar_count %}
|
46 | 46 | <strong>
|
47 |
| - <span data-background-color="{{ query.similar_color }}"> </span> |
| 47 | + <span style="background-color:{{ query.similar_color }}"> </span> |
48 | 48 | {% blocktrans with count=query.similar_count %}{{ count }} similar queries.{% endblocktrans %}
|
49 | 49 | </strong>
|
50 | 50 | {% endif %}
|
51 | 51 | {% if query.duplicate_count %}
|
52 | 52 | <strong>
|
53 |
| - <span data-background-color="{{ query.duplicate_color }}"> </span> |
| 53 | + <span style="background-color:{{ query.duplicate_color }}"> </span> |
54 | 54 | {% blocktrans with dupes=query.duplicate_count %}Duplicated {{ dupes }} times.{% endblocktrans %}
|
55 | 55 | </strong>
|
56 | 56 | {% endif %}
|
57 | 57 | </td>
|
58 | 58 | <td class="djdt-timeline">
|
59 |
| - <div class="djDebugTimeline"><div class="djDebugLineChart{% if query.is_slow %} djDebugLineChartWarning{% endif %}" data-left="{{ query.start_offset|unlocalize }}%"><strong data-width="{{ query.width_ratio_relative|unlocalize }}%" data-background-color="{{ query.trace_color }}">{{ query.width_ratio }}%</strong></div></div> |
| 59 | + <div class="djDebugTimeline"><div class="djDebugLineChart{% if query.is_slow %} djDebugLineChartWarning{% endif %}" style="left:{{ query.start_offset|unlocalize }}%"><strong style="width:{{ query.width_ratio_relative|unlocalize }}%;background-color:{{ query.trace_color }}">{{ query.width_ratio }}%</strong></div></div> |
60 | 60 | </td>
|
61 | 61 | <td class="djdt-time">
|
62 | 62 | {{ query.duration|floatformat:"2" }}
|
|
113 | 113 | {% else %}
|
114 | 114 | <p>{% trans "No SQL queries were recorded during this request." %}</p>
|
115 | 115 | {% endif %}
|
116 |
| - |
117 |
| -<script src="{% static 'debug_toolbar/js/toolbar.sql.js' %}" defer></script> |
0 commit comments