- Kompletna Go implementacija licencnog servera (19 Go fajlova) - Klijentski API: activate, deactivate, validate - Admin API: CRUD licence, stats, audit log - Admin dashboard: htmx + Go templates - RSA-2048 potpisivanje licencnih podataka - Rate limiting i API key autentifikacija - MySQL migracije i seed podaci (ESIR, ARV, LIGHT_TICKET) - Unit testovi: keygen, crypto, model, middleware (24 testa) - Dokumentacija: SPEC.md, ARCHITECTURE.md, SETUP.md, API.md, TESTING.md, README.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
31 lines
893 B
HTML
31 lines
893 B
HTML
{{define "audit.html"}}{{template "app" .}}{{end}}
|
|
{{define "page-title"}}Audit Log - DAL License Server{{end}}
|
|
{{define "page-content"}}
|
|
<h1>Audit Log</h1>
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Vreme</th>
|
|
<th>Akcija</th>
|
|
<th>Licenca</th>
|
|
<th>IP</th>
|
|
<th>Detalji</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range .Entries}}
|
|
<tr>
|
|
<td>{{formatDate .CreatedAt}}</td>
|
|
<td><span class="badge badge-{{.Action}}">{{.Action}}</span></td>
|
|
<td>{{if .LicenseKey}}<code>{{.LicenseKey}}</code>{{else}}-{{end}}</td>
|
|
<td>{{.IPAddress}}</td>
|
|
<td><pre class="audit-details">{{jsonPretty .Details}}</pre></td>
|
|
</tr>
|
|
{{else}}
|
|
<tr><td colspan="5" class="text-center">Nema podataka</td></tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
{{end}}
|