| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- package pages
- import (
- "gitote/gitote/pkg/context"
- )
- const (
- ABOUT = "pages/about"
- FAQ = "pages/faq"
- PRIVACY = "pages/privacy"
- TOS = "pages/tos"
- BRAND = "pages/brand"
- CONTACT = "pages/contact"
- CONTRIBUTE = "pages/contribute"
- SECURITY = "pages/security"
- VERIFIED = "pages/verified"
- MAKERS = "pages/makers"
- HELP = "pages/help"
- FEATURES = "pages/features"
- FEATUREREQUEST = "pages/request"
- SPONSORSHIP = "pages/sponsorship"
- SITEMAP = "pages/sitemap"
- DONATE = "pages/donate"
- )
- func About(c *context.Context) {
- c.Data["Title"] = "About"
- c.HTML(200, ABOUT)
- }
- func Faq(c *context.Context) {
- c.Data["Title"] = "FAQ"
- c.HTML(200, FAQ)
- }
- func Privacy(c *context.Context) {
- c.Data["Title"] = "Privacy Policy"
- c.HTML(200, PRIVACY)
- }
- func Tos(c *context.Context) {
- c.Data["Title"] = "Terms of Service"
- c.HTML(200, TOS)
- }
- func Brand(c *context.Context) {
- c.Data["Title"] = "Gitote Brand"
- c.HTML(200, BRAND)
- }
- func Contribute(c *context.Context) {
- c.Data["PageIsContribute"] = true
- c.Data["Title"] = "Contribute"
- c.HTML(200, CONTRIBUTE)
- }
- func Security(c *context.Context) {
- c.Data["Title"] = "Security"
- c.HTML(200, SECURITY)
- }
- func Verified(c *context.Context) {
- c.Data["Title"] = "Verified"
- c.HTML(200, VERIFIED)
- }
- func Makers(c *context.Context) {
- c.Data["Title"] = "Makers"
- c.HTML(200, MAKERS)
- }
- func Help(c *context.Context) {
- c.Data["Title"] = "Help"
- c.Data["PageIsHelp"] = true
- c.HTML(200, HELP)
- }
- func Contact(c *context.Context) {
- c.Data["Title"] = "Contact"
- c.HTML(200, CONTACT)
- }
- func Features(c *context.Context) {
- c.Data["Title"] = "Features"
- c.Data["PageIsFeatures"] = true
- c.HTML(200, FEATURES)
- }
- func FeatureRequest(c *context.Context) {
- c.Data["Title"] = "Feature Request"
- c.HTML(200, FEATUREREQUEST)
- }
- func Sponsorship(c *context.Context) {
- c.Data["Title"] = "Sponsorship"
- c.HTML(200, SPONSORSHIP)
- }
- func Donate(c *context.Context) {
- c.Data["Title"] = "Donate"
- c.HTML(200, DONATE)
- }
|