Fix #532, add system notice

This commit is contained in:
Unknwon 2014-10-08 18:29:18 -04:00
parent 54c9844d66
commit 1aa76bd279
12 changed files with 202 additions and 11 deletions

View file

@ -243,6 +243,11 @@ func runWeb(*cli.Context) {
r.Post("/:authid", bindIgnErr(auth.AuthenticationForm{}), admin.EditAuthSourcePost)
r.Post("/:authid/delete", admin.DeleteAuthSource)
})
m.Group("/notices", func(r *macaron.Router) {
r.Get("", admin.Notices)
r.Get("/:id:int/delete", admin.DeleteNotice)
})
}, adminReq)
m.Get("/:username", ignSignIn, user.Profile)