embed.go 258 B

123456789101112131415161718
  1. package user
  2. import (
  3. "gitote/gitote/pkg/context"
  4. "strings"
  5. )
  6. const (
  7. EMBED = "embed/user"
  8. )
  9. func Embed(c *context.Context) {
  10. ctxUser := GetUserByName(c, strings.TrimSuffix(c.Params(":username"), ""))
  11. c.Data["Owner"] = ctxUser
  12. c.HTML(200, EMBED)
  13. }