Parcourir la source

Updated Certificate

Yoginth il y a 7 ans
Parent
commit
8970954f93
3 fichiers modifiés avec 1 ajouts et 28 suppressions
  1. 1 2
      cmd/web.go
  2. 0 15
      routes/misc/certificate.go
  3. 0 11
      templates/misc/certificate.tmpl

+ 1 - 2
cmd/web.go

@@ -14,7 +14,6 @@ import (
 	"gitote/gitote/routes/admin"
 	apiv1 "gitote/gitote/routes/api/v1"
 	"gitote/gitote/routes/dev"
-	"gitote/gitote/routes/misc"
 	"gitote/gitote/routes/org"
 	"gitote/gitote/routes/pages"
 	"gitote/gitote/routes/repo"
@@ -308,7 +307,7 @@ func runWeb(c *cli.Context) error {
 	// ***** END: Pages *****
 
 	// ***** START: Misc *****
-	m.Get("/certificate", ignSignIn, misc.Certificate)
+	m.Get("/interns/certificate/:username", ignSignIn, user.InternCertificate)
 	// ***** END: Misc *****
 
 	// ***** START: Embed *****

+ 0 - 15
routes/misc/certificate.go

@@ -1,15 +0,0 @@
-package misc
-
-import (
-	"gitote/gitote/pkg/context"
-)
-
-const (
-	CERTIFICATE = "misc/certificate"
-)
-
-func Certificate(c *context.Context) {
-	c.Data["Title"] = "Gitote Cert"
-
-	c.HTML(200, CERTIFICATE)
-}

+ 0 - 11
templates/misc/certificate.tmpl

@@ -1,11 +0,0 @@
-<div class="pages bg">
-    {{template "base/head" .}}
-    <div class="pages body">
-        {{if .IsIntern}}
-            You Have Cert
-        {{else}}
-            You don't have
-        {{end}}
-    </div>
-    {{template "base/footer" .}}
-</div>