Files
ops-Gazelle/templates/debug/ocelot.twig
2025-02-24 14:37:56 +01:00

28 lines
962 B
Twig

{% for n, request in list %}
{% if loop.first %}
{% set nr = list|length %}
<table class="layout" width="100%">
<tr>
<td><strong><a href="#" id="debug-view-ocelot" class="brackets">View</a>
{{ nr|number_format }} Ocelot request{% if nr > 1 %}s{% endif %}s</strong></td>
</tr>
</table>
<table id="debug_ocelot" class="debug_table hidden">
{% endif %}
<tr>
<td class="debug_data debug_ocelot_data">
<a href="#" onclick="$('#debug_ocelot_{{ n }}').gtoggle(); return false">{{ request.path }}</a>
<pre id="debug_ocelot_{{ n }}" class="hidden">{{ request.response }}</pre>
</td>
<td class="debug_info" style="width: 100px;">
{{ request.status }}
</td>
<td class="debug_info debug_timing" style="width: 100px;">
{{ request.time|number_format(5) }} ms
</td>
</tr>
{% if loop.last %}
</table>
{% endif %}
{% endfor %}