{{define "content"}}

Audit Log

{{if .AuditIsAdmin}} {{end}} {{.AuditTotal}} entries
{{range .AuditEntries}} {{else}} {{end}}
Timestamp User Action Details IP Address
{{formatDateTime .CreatedAt}} {{.Username}} {{if eq .Action "login_success"}} Login {{else if eq .Action "login_failed"}} Login Failed {{else if eq .Action "logout"}} Logout {{else if eq .Action "mfa_verified"}} MFA Verified {{else if eq .Action "mfa_failed"}} MFA Failed {{else if eq .Action "mfa_enabled"}} MFA Enabled {{else if eq .Action "mfa_disabled"}} MFA Disabled {{else if eq .Action "key_generated"}} Key Generated {{else if eq .Action "key_imported"}} Key Imported {{else if eq .Action "key_deleted"}} Key Deleted {{else if eq .Action "key_downloaded"}} Key Downloaded {{else if eq .Action "server_added"}} Server Added {{else if eq .Action "server_deleted"}} Server Deleted {{else if eq .Action "server_test"}} Server Test {{else if eq .Action "server_auth_test"}} Auth Test {{else if eq .Action "deploy_success"}} Deploy OK {{else if eq .Action "deploy_failed"}} Deploy Failed {{else if eq .Action "user_created"}} User Created {{else if eq .Action "user_updated"}} User Updated {{else if eq .Action "user_deleted"}} User Deleted {{else if eq .Action "settings_changed"}} Settings Changed {{else if eq .Action "password_changed"}} Password Changed {{else if eq .Action "masterkey_regenerated"}} Master Key Regen {{else if eq .Action "masterkey_regen_failed"}} Master Key Regen Failed {{else if eq .Action "avatar_changed"}} Avatar Changed {{else if eq .Action "email_notify_changed"}} Email Notify Changed {{else if eq .Action "email_test_sent"}} Email Test Sent {{else if eq .Action "email_test_failed"}} Email Test Failed {{else if eq .Action "email_login_sent"}} Login Email Sent {{else if eq .Action "email_login_failed"}} Login Email Failed {{else if eq .Action "group_created"}} Group Created {{else if eq .Action "group_updated"}} Group Updated {{else if eq .Action "group_deleted"}} Group Deleted {{else if eq .Action "group_deploy"}} Group Deploy {{else if eq .Action "server_updated"}} Server Updated {{else if eq .Action "cron_job_created"}} Cron Created {{else if eq .Action "cron_job_updated"}} Cron Updated {{else if eq .Action "cron_job_deleted"}} Cron Deleted {{else if eq .Action "cron_job_paused"}} Cron Paused {{else if eq .Action "cron_job_resumed"}} Cron Resumed {{else if eq .Action "cron_job_executed"}} Cron Executed {{else if eq .Action "cron_job_failed"}} Cron Failed {{else}} {{.Action}} {{end}} {{.Details}} {{.IPAddress}}

No audit entries found.
{{if gt .AuditTotalPages 1}} {{end}}
{{end}}