Files
website/web/templates/admin/logs/access_logs.html

27 lines
751 B
HTML

{{ define "content" }}
<h2>Admin Access Log</h2>
<table class="table-auto w-full text-sm mt-4">
<thead>
<tr class="bg-gray-200">
<th class="px-2 py-1 text-left">Time</th>
<th class="px-2 py-1">User ID</th>
<th class="px-2 py-1">Path</th>
<th class="px-2 py-1">IP</th>
<th class="px-2 py-1">User Agent</th>
</tr>
</thead>
<tbody>
{{ range .AuditLogs }}
<tr class="border-b">
<td class="px-2 py-1">{{ .AccessedAt }}</td>
<td class="px-2 py-1 text-center">{{ .UserID }}</td>
<td class="px-2 py-1">{{ .Path }}</td>
<td class="px-2 py-1">{{ .IP }}</td>
<td class="px-2 py-1 text-xs text-gray-600">{{ .UserAgent }}</td>
</tr>
{{ end }}
</tbody>
</table>
{{ end }}