mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-14 19:22:09 +09:00
da37b7916b
Co-authored-by: bircni <bircni@users.noreply.github.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
20 lines
499 B
Go
20 lines
499 B
Go
// Copyright 2026 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package setting
|
|
|
|
import (
|
|
audit_model "gitea.dev/models/audit"
|
|
shared_audit "gitea.dev/routers/web/shared/audit"
|
|
"gitea.dev/services/context"
|
|
)
|
|
|
|
func ViewAuditLogs(ctx *context.Context) {
|
|
shared_audit.View(ctx, shared_audit.ViewOptions{
|
|
Template: "user/settings/audit_logs",
|
|
ScopeType: audit_model.ScopeUser,
|
|
ScopeID: ctx.Doer.ID,
|
|
PageData: map[string]any{"PageIsSettingsAudit": true},
|
|
})
|
|
}
|