certificate.go 337 B

1234567891011121314151617181920
  1. package user
  2. import (
  3. "gitote/gitote/pkg/context"
  4. "strings"
  5. )
  6. const (
  7. INTERNCERTIFICATE = "misc/internscert"
  8. )
  9. func InternCertificate(c *context.Context) {
  10. ctxUser := GetUserByName(c, strings.TrimSuffix(c.Params(":username"), ""))
  11. c.Data["PageIsUserProfile"] = true
  12. c.Data["Owner"] = ctxUser
  13. c.HTML(200, INTERNCERTIFICATE)
  14. }