Files
myep/templates/admin/log/xml_dumps.html.twig
T

62 lines
2.3 KiB
Twig

{% extends 'layout_admin.html.twig' %}
{% block content %}
<h1 class="text-2xl font-bold pb-8">
XML-Dumps für Request ID {{ logEntry.requestId }}
</h1>
{% if dumps is empty %}
<div class="alert alert-warning">
<i class="fa fa-exclamation-triangle"></i>
Keine XML-Dumps gefunden. Die Dateien wurden vermutlich bereits bereinigt.
</div>
{% else %}
<div class="data-table-wrapper">
<div class="data-table-wrapper__inner text-sm">
<table class="data-table">
<thead>
<tr>
<th>
Dateiname
</th>
<th>
Typ
</th>
<th>
Dateigröße
</th>
<th>
Aktion
</th>
</tr>
</thead>
<tbody>
{% for dump in dumps %}
<tr>
<td>
<code>{{ dump.filename }}</code>
</td>
<td>
{% if dump.type == 'request' %}
<span class="badge bg-primary">Request</span>
{% else %}
<span class="badge bg-success">Response</span>
{% endif %}
</td>
<td>
{{ (dump.size / 1024)|number_format(1) }} KB
</td>
<td>
<a href="{{ path('app_admin_log_xmldump_download', { filename: dump.filename }) }}"
class="">
{{ icon('download', 'w-4 h-4')}} Download
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
{% endblock %}