Browse Source

Remove Features Page and Closes #38

Yoginth 6 năm trước cách đây
mục cha
commit
ce26e1508b

+ 0 - 1
cmd/web.go

@@ -307,7 +307,6 @@ func runWeb(c *cli.Context) error {
 	m.Get("/makers", ignSignIn, pages.Makers)
 	m.Get("/help", ignSignIn, pages.Help)
 	m.Get("/contact", ignSignIn, pages.Contact)
-	m.Get("/features", ignSignIn, pages.Features)
 	m.Get("/request", ignSignIn, pages.FeatureRequest)
 	m.Get("/sponsorship", ignSignIn, pages.Sponsorship)
 	m.Get("/sponsors", ignSignIn, pages.Sponsors)

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
models/user.go


+ 0 - 11
routes/pages/pages.go

@@ -44,9 +44,6 @@ const (
 	// HelpTPL page template
 	HelpTPL = "pages/help"
 
-	// FeaturesTPL page template
-	FeaturesTPL = "pages/features"
-
 	// FeatureRequestTPL page template
 	FeatureRequestTPL = "pages/request"
 
@@ -136,14 +133,6 @@ func Contact(c *context.Context) {
 	c.HTML(200, ContactTPL)
 }
 
-// Features shows features page
-func Features(c *context.Context) {
-	c.Data["Title"] = "Features"
-	c.Data["PageIsFeatures"] = true
-
-	c.HTML(200, FeaturesTPL)
-}
-
 // FeatureRequest shows feature request page
 func FeatureRequest(c *context.Context) {
 	c.Data["Title"] = "Feature Request"

+ 0 - 1
templates/base/footer_content.tmpl

@@ -10,7 +10,6 @@
 	<div class="two wide column">
 		<h4 class="ui header explore-card font">Product</h4>
 		<div class="ui link list">
-			<a class="item" href="{{AppURL}}features">Features</a>
 			<a class="item" href="{{AppURL}}security">Security</a>
 			<a class="item" href="{{AppURL}}resources">Resources</a>
 			<a class="item" href="{{AppURL}}case-studies">Case studies</a>

+ 0 - 1
templates/base/head.tmpl

@@ -106,7 +106,6 @@
 									<a class="navbar bold main-menu item{{if .PageIsPulls}} nav-active{{end}}" href="{{AppSubURL}}/pulls"><i class="menu-icon octicon">🚧</i>{{.i18n.Tr "pull_requests"}}</a>
 								{{else}}
 									<a class="navbar bold main-menu item{{if .PageIsHome}} nav-active{{end}}" href="{{AppSubURL}}/"><i class="menu-icon octicon">🏠</i>{{.i18n.Tr "home"}}</a>
-									<a class="navbar bold main-menu item{{if .PageIsFeatures}} nav-active{{end}}" href="{{AppSubURL}}/features"><i class="menu-icon octicon">🔮</i>{{.i18n.Tr "features"}}</a>
 								{{end}}
 
 								<a class="navbar bold main-menu item{{if or .PageIsExplore .PageIsTrending}} nav-active{{end}}" href="{{AppSubURL}}/trending"><i class="menu-icon octicon">🌐</i>{{.i18n.Tr "explore"}}</a>

+ 0 - 3
templates/base/info_bar.tmpl

@@ -43,9 +43,6 @@
                 <a href="{{AppURL}}about">
                     <span class="infobar align hide-mobile">About</span>
                 </a>
-                <a href="{{AppURL}}features">
-                    <span class="infobar align hide-mobile">Features</span>
-                </a>
                 <a href="https://help.gitote.in">
                     <span class="infobar align hide-mobile">Docs</span>
                 </a>

+ 0 - 10
templates/pages/features.tmpl

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

+ 0 - 1
templates/sitemap.tmpl

@@ -10,7 +10,6 @@ https://gitote.in/contribute
 https://gitote.in/security
 https://gitote.in/verified
 https://gitote.in/makers
-https://gitote.in/features
 https://gitote.in/contact
 https://gitote.in/request
 https://gitote.in/sponsorship