You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
513 B

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  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 routers
  5. import (
  6. "github.com/gogits/gogs/modules/middleware"
  7. "github.com/gogits/gogs/routers/user"
  8. )
  9. func Home(ctx *middleware.Context) {
  10. if ctx.IsSigned {
  11. user.Dashboard(ctx)
  12. return
  13. }
  14. ctx.Data["PageIsHome"] = true
  15. ctx.Render.HTML(200, "home", ctx.Data)
  16. }
  17. func Help(ctx *middleware.Context) string {
  18. return "This is help page"
  19. }