{% if trace.sql_traces.exists %}
{% for trace in trace.sql_traces %}
# {{ forloop.counter }}
{% include 'lens/components/codeblock.html' with code=trace.data.simple_sql wrap_height=1 only %}
Duration
{% include 'lens/components/duration.html' with trace=trace only %}
Time
{{ trace.start_time|date:'H:i:s.u' }}
{% include 'lens/components/stacktrace.html' with stacktrace=trace.data.stacktrace only %}
{% endfor %}
{% else %} {% include 'lens/components/empty_trace.html' with title="No traces found" subtitle="SQL queries are displayed here." only %} {% endif %}