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

82 lines
2.9 KiB
Twig

{% extends 'layout_admin.html.twig' %}
{% block content %}
<h1 class="text-2xl font-bold pb-8">
Logs
</h1>
<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' %}
{% embed '_partials/_dropdown.html.twig' %}
{% block content %}
<a href="{{ path('app_admin_log_xmldumps', { 'id': entry.id }) }}"
class="text-gray-700 hover:text-primary block px-4 py-2 text-sm"
role="menuitem"
tabindex="-1">
XML-Dumps
</a>
{% endblock %}
{% endembed %}
{% endif %}
</td>
</tr>
{% else %}
<tr>
<td colspan="7">
Keine Daten...
</td>
</tr>
{% endfor %}
</tbody>
</table>
{{ knp_pagination_render(pagination) }}
</div>
</div>
{% endblock %}