|
|
@@ -11,85 +11,85 @@ import (
|
|
|
)
|
|
|
|
|
|
const (
|
|
|
- // ABOUT page template
|
|
|
- ABOUT = "pages/about"
|
|
|
+ // AboutTPL page template
|
|
|
+ AboutTPL = "pages/about"
|
|
|
|
|
|
- // FAQ page template
|
|
|
- FAQ = "pages/faq"
|
|
|
+ // FaqTPL page template
|
|
|
+ FaqTPL = "pages/faq"
|
|
|
|
|
|
- // PRIVACY page template
|
|
|
- PRIVACY = "pages/privacy"
|
|
|
+ // PrivacyTPL page template
|
|
|
+ PrivacyTPL = "pages/privacy"
|
|
|
|
|
|
- // TOS page template
|
|
|
- TOS = "pages/tos"
|
|
|
+ // TosTPL page template
|
|
|
+ TosTPL = "pages/tos"
|
|
|
|
|
|
- // BRAND page template
|
|
|
- BRAND = "pages/brand"
|
|
|
+ // BrandTPL page template
|
|
|
+ BrandTPL = "pages/brand"
|
|
|
|
|
|
- // CONTACT page template
|
|
|
- CONTACT = "pages/contact"
|
|
|
+ // ContactTPL page template
|
|
|
+ ContactTPL = "pages/contact"
|
|
|
|
|
|
- // CONTRIBUTE page template
|
|
|
- CONTRIBUTE = "pages/contribute"
|
|
|
+ // ContributeTPL page template
|
|
|
+ ContributeTPL = "pages/contribute"
|
|
|
|
|
|
- // SECURITY page template
|
|
|
- SECURITY = "pages/security"
|
|
|
+ // SecurityTPL page template
|
|
|
+ SecurityTPL = "pages/security"
|
|
|
|
|
|
- // VERIFIED page template
|
|
|
- VERIFIED = "pages/verified"
|
|
|
+ // VerifiedTPL page template
|
|
|
+ VerifiedTPL = "pages/verified"
|
|
|
|
|
|
- // MAKERS page template
|
|
|
- MAKERS = "pages/makers"
|
|
|
+ // MakersTPL page template
|
|
|
+ MakersTPL = "pages/makers"
|
|
|
|
|
|
- // HELP page template
|
|
|
- HELP = "pages/help"
|
|
|
+ // HelpTPL page template
|
|
|
+ HelpTPL = "pages/help"
|
|
|
|
|
|
- // FEATURES page template
|
|
|
- FEATURES = "pages/features"
|
|
|
+ // FeaturesTPL page template
|
|
|
+ FeaturesTPL = "pages/features"
|
|
|
|
|
|
- // FEATUREREQUEST page template
|
|
|
- FEATUREREQUEST = "pages/request"
|
|
|
+ // FeatureRequestTPL page template
|
|
|
+ FeatureRequestTPL = "pages/request"
|
|
|
|
|
|
- // SPONSORSHIP page template
|
|
|
- SPONSORSHIP = "pages/sponsorship"
|
|
|
+ // SponsorshipTPL page template
|
|
|
+ SponsorshipTPL = "pages/sponsorship"
|
|
|
|
|
|
- // SITEMAP page template
|
|
|
- SITEMAP = "pages/sitemap"
|
|
|
+ // SitemapTPL page template
|
|
|
+ SitemapTPL = "pages/sitemap"
|
|
|
)
|
|
|
|
|
|
// About shows about page
|
|
|
func About(c *context.Context) {
|
|
|
c.Data["Title"] = "About"
|
|
|
|
|
|
- c.HTML(200, ABOUT)
|
|
|
+ c.HTML(200, AboutTPL)
|
|
|
}
|
|
|
|
|
|
// Faq shows faq page
|
|
|
func Faq(c *context.Context) {
|
|
|
c.Data["Title"] = "FAQ"
|
|
|
|
|
|
- c.HTML(200, FAQ)
|
|
|
+ c.HTML(200, FaqTPL)
|
|
|
}
|
|
|
|
|
|
// Privacy shows privacy page
|
|
|
func Privacy(c *context.Context) {
|
|
|
c.Data["Title"] = "Privacy Policy"
|
|
|
|
|
|
- c.HTML(200, PRIVACY)
|
|
|
+ c.HTML(200, PrivacyTPL)
|
|
|
}
|
|
|
|
|
|
// Tos shows tos page
|
|
|
func Tos(c *context.Context) {
|
|
|
c.Data["Title"] = "Terms of Service"
|
|
|
|
|
|
- c.HTML(200, TOS)
|
|
|
+ c.HTML(200, TosTPL)
|
|
|
}
|
|
|
|
|
|
// Brand shows brand page
|
|
|
func Brand(c *context.Context) {
|
|
|
c.Data["Title"] = "Gitote Brand"
|
|
|
|
|
|
- c.HTML(200, BRAND)
|
|
|
+ c.HTML(200, BrandTPL)
|
|
|
}
|
|
|
|
|
|
// Contribute shows contribute page
|
|
|
@@ -97,28 +97,28 @@ func Contribute(c *context.Context) {
|
|
|
c.Data["PageIsContribute"] = true
|
|
|
c.Data["Title"] = "Contribute"
|
|
|
|
|
|
- c.HTML(200, CONTRIBUTE)
|
|
|
+ c.HTML(200, ContributeTPL)
|
|
|
}
|
|
|
|
|
|
// Security shows security page
|
|
|
func Security(c *context.Context) {
|
|
|
c.Data["Title"] = "Security"
|
|
|
|
|
|
- c.HTML(200, SECURITY)
|
|
|
+ c.HTML(200, SecurityTPL)
|
|
|
}
|
|
|
|
|
|
// Verified shows verified page
|
|
|
func Verified(c *context.Context) {
|
|
|
c.Data["Title"] = "Verified"
|
|
|
|
|
|
- c.HTML(200, VERIFIED)
|
|
|
+ c.HTML(200, VerifiedTPL)
|
|
|
}
|
|
|
|
|
|
// Makers shows maker page
|
|
|
func Makers(c *context.Context) {
|
|
|
c.Data["Title"] = "Makers"
|
|
|
|
|
|
- c.HTML(200, MAKERS)
|
|
|
+ c.HTML(200, MakersTPL)
|
|
|
}
|
|
|
|
|
|
// Help shows help page
|
|
|
@@ -126,14 +126,14 @@ func Help(c *context.Context) {
|
|
|
c.Data["Title"] = "Help"
|
|
|
c.Data["PageIsHelp"] = true
|
|
|
|
|
|
- c.HTML(200, HELP)
|
|
|
+ c.HTML(200, HelpTPL)
|
|
|
}
|
|
|
|
|
|
// Contact shows contact page
|
|
|
func Contact(c *context.Context) {
|
|
|
c.Data["Title"] = "Contact"
|
|
|
|
|
|
- c.HTML(200, CONTACT)
|
|
|
+ c.HTML(200, ContactTPL)
|
|
|
}
|
|
|
|
|
|
// Features shows features page
|
|
|
@@ -141,19 +141,19 @@ func Features(c *context.Context) {
|
|
|
c.Data["Title"] = "Features"
|
|
|
c.Data["PageIsFeatures"] = true
|
|
|
|
|
|
- c.HTML(200, FEATURES)
|
|
|
+ c.HTML(200, FeaturesTPL)
|
|
|
}
|
|
|
|
|
|
// FeatureRequest shows feature request page
|
|
|
func FeatureRequest(c *context.Context) {
|
|
|
c.Data["Title"] = "Feature Request"
|
|
|
|
|
|
- c.HTML(200, FEATUREREQUEST)
|
|
|
+ c.HTML(200, FeatureRequestTPL)
|
|
|
}
|
|
|
|
|
|
// Sponsorship shows sponsorship page
|
|
|
func Sponsorship(c *context.Context) {
|
|
|
c.Data["Title"] = "Sponsorship"
|
|
|
|
|
|
- c.HTML(200, SPONSORSHIP)
|
|
|
+ c.HTML(200, SponsorshipTPL)
|
|
|
}
|