Procházet zdrojové kódy

Remove Brand Page and Closes #47

Yoginth před 6 roky
rodič
revize
012b4d60cf
3 změnil soubory, kde provedl 0 přidání a 22 odebrání
  1. 0 1
      cmd/web.go
  2. 0 10
      routes/pages/pages.go
  3. 0 11
      templates/pages/brand.tmpl

+ 0 - 1
cmd/web.go

@@ -300,7 +300,6 @@ func runWeb(c *cli.Context) error {
 	m.Get("/faq", ignSignIn, pages.Faq)
 	m.Get("/privacy", ignSignIn, pages.Privacy)
 	m.Get("/tos", ignSignIn, pages.Tos)
-	m.Get("/brand", ignSignIn, pages.Brand)
 	m.Get("/contribute", ignSignIn, pages.Contribute)
 	m.Get("/security", ignSignIn, pages.Security)
 	m.Get("/verified", ignSignIn, pages.Verified)

+ 0 - 10
routes/pages/pages.go

@@ -23,9 +23,6 @@ const (
 	// TosTPL page template
 	TosTPL = "pages/tos"
 
-	// BrandTPL page template
-	BrandTPL = "pages/brand"
-
 	// ContributeTPL page template
 	ContributeTPL = "pages/contribute"
 
@@ -67,13 +64,6 @@ func Tos(c *context.Context) {
 	c.HTML(200, TosTPL)
 }
 
-// Brand shows brand page
-func Brand(c *context.Context) {
-	c.Data["Title"] = "Gitote Brand"
-
-	c.HTML(200, BrandTPL)
-}
-
 // Contribute shows contribute page
 func Contribute(c *context.Context) {
 	c.Data["PageIsContribute"] = true

+ 0 - 11
templates/pages/brand.tmpl

@@ -1,11 +0,0 @@
-<div class="pages bg">
-    {{template "base/head" .}}
-    <div class="pages head">
-        <p class="text">🖼 Brand 🖼</p>
-    </div>
-    <div class="pages body">
-        {{template "misc/soon" .}}
-    </div>
-    {{template "base/footer" .}}
-</div>
-