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

tech.go 645 B

2 years ago
2 years ago
2 years ago
2 years ago
1234567891011121314151617181920212223242526272829303132
  1. package tech
  2. import (
  3. "code.gitea.io/gitea/modules/base"
  4. "code.gitea.io/gitea/modules/context"
  5. )
  6. const (
  7. tplCreate base.TplName = "tech/create"
  8. tplTech base.TplName = "tech/tech_view"
  9. tplRepo base.TplName = "tech/repo_view"
  10. tplAdmin base.TplName = "tech/admin_view"
  11. tplMine base.TplName = "tech/my_view"
  12. )
  13. func Create(ctx *context.Context) {
  14. ctx.HTML(200, tplCreate)
  15. }
  16. func TechView(ctx *context.Context) {
  17. ctx.HTML(200, tplTech)
  18. }
  19. func RepoView(ctx *context.Context) {
  20. ctx.HTML(200, tplRepo)
  21. }
  22. func AdminView(ctx *context.Context) {
  23. ctx.HTML(200, tplAdmin)
  24. }
  25. func MyView(ctx *context.Context) {
  26. ctx.HTML(200, tplMine)
  27. }