summaryrefslogtreecommitdiffstats
path: root/routers/admin/admin.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/admin/admin.go')
-rw-r--r--routers/admin/admin.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/routers/admin/admin.go b/routers/admin/admin.go
index 0e6fa2c242..5107e18b7d 100644
--- a/routers/admin/admin.go
+++ b/routers/admin/admin.go
@@ -125,6 +125,7 @@ const (
reinitMissingRepository
syncExternalUsers
gitFsck
+ deleteGeneratedRepositoryAvatars
)
// Dashboard show admin panel dashboard
@@ -167,6 +168,9 @@ func Dashboard(ctx *context.Context) {
case gitFsck:
success = ctx.Tr("admin.dashboard.git_fsck_started")
go models.GitFsck()
+ case deleteGeneratedRepositoryAvatars:
+ success = ctx.Tr("admin.dashboard.delete_generated_repository_avatars_success")
+ err = models.RemoveRandomAvatars()
}
if err != nil {