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

75 lines
2.6 KiB
Twig

{% extends 'layout_admin.html.twig' %}
{% block content %}
<twig:page:heading>Logs</twig:page:heading>
<div class="data-table-wrapper">
<div class="data-table-wrapper__inner text-sm">
<table class="data-table">
<thead>
<tr>
<th>
{{ knp_pagination_sortable(pagination, 'Datum', 'log.timestamp') }}
</th>
<th>
Fehlercode
</th>
<th>
Benutzer
</th>
<th>
Aktion
</th>
<th>
<span class="whitespace-nowrap">Request ID</span>
</th>
<th>
URI
</th>
<th></th>
</tr>
</thead>
<tbody>
{% for entry in pagination %}
<tr>
<td>
{{ entry.createdAt | date('d.m.Y H:i') }}
</td>
<td>
{{ entry.errorCode | default('-') }}
</td>
<td>
{{ entry.userName }}
</td>
<td>
{{ entry.message }}
</td>
<td>
{{ entry.requestId | default('-') }}
</td>
<td>
<span class="text-xs">{{ entry.uri | default('-') | u.truncate(48, '...') }}</span>
</td>
<td>
{% if entry.channel == 'bpn' %}
<twig:dropdown>
<twig:dropdown:link url="{{ path('app_admin_log_xmldumps', { 'id': entry.id }) }}">
XML-Dumps
</twig:dropdown:link>
</twig:dropdown>
{% endif %}
</td>
</tr>
{% else %}
<tr>
<td colspan="7">
Keine Daten...
</td>
</tr>
{% endfor %}
</tbody>
</table>
{{ knp_pagination_render(pagination) }}
</div>
</div>
{% endblock %}