certificate.go 638 B

1234567891011121314151617181920212223242526
  1. // Copyright 2015 The Gogs Authors. All rights reserved.
  2. // Copyright 2018 Gitote. All rights reserved.
  3. //
  4. // This source code is licensed under the MIT license found in the
  5. // LICENSE file in the root directory of this source tree.
  6. package user
  7. import (
  8. "gitote/gitote/pkg/context"
  9. "strings"
  10. )
  11. const (
  12. // InterCertificateTPL page template
  13. InterCertificateTPL = "misc/internscert"
  14. )
  15. // InternCertificate returns user details for the certificate
  16. func InternCertificate(c *context.Context) {
  17. ctxUser := GetUserByName(c, strings.TrimSuffix(c.Params(":username"), ""))
  18. c.Data["Owner"] = ctxUser
  19. c.HTML(200, InterCertificateTPL)
  20. }