Search gists on user profile with title, visibility, language & topics (#422)
This commit is contained in:
@@ -40,3 +40,9 @@ func AdminIndexGists(ctx *context.Context) error {
|
||||
go actions.Run(actions.IndexGists)
|
||||
return ctx.RedirectTo("/admin-panel")
|
||||
}
|
||||
|
||||
func AdminSyncGistLanguages(ctx *context.Context) error {
|
||||
ctx.AddFlash(ctx.Tr("flash.admin.sync-gist-languages"), "success")
|
||||
go actions.Run(actions.SyncGistLanguages)
|
||||
return ctx.RedirectTo("/admin-panel")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user