admin.go 584 B

123456789101112131415161718192021222324
  1. // Copyright 2014 The Gogs Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package admin
  5. import (
  6. "github.com/gogits/gogs/modules/middleware"
  7. )
  8. func Dashboard(ctx *middleware.Context) {
  9. ctx.Data["Title"] = "Admin Dashboard"
  10. ctx.HTML(200, "admin/dashboard")
  11. }
  12. func Users(ctx *middleware.Context) {
  13. ctx.Data["Title"] = "User Management"
  14. ctx.HTML(200, "admin/users")
  15. }
  16. func Repositories(ctx *middleware.Context) {
  17. ctx.Data["Title"] = "Repository Management"
  18. ctx.HTML(200, "admin/repos")
  19. }