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 541 B

2 years ago
123456789101112131415161718192021222324252627
  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. )
  12. func Create(ctx *context.Context) {
  13. ctx.HTML(200, tplCreate)
  14. }
  15. func TechView(ctx *context.Context) {
  16. ctx.HTML(200, tplTech)
  17. }
  18. func RepoView(ctx *context.Context) {
  19. ctx.HTML(200, tplRepo)
  20. }
  21. func AdminView(ctx *context.Context) {
  22. ctx.HTML(200, tplAdmin)
  23. }