Monorepo for Tangled
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

appview/pages: add sites settings page

Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>

+14
+1
appview/pages/funcmap.go
··· 461 461 {"Name": "notifications", "Icon": "bell"}, 462 462 {"Name": "knots", "Icon": "volleyball"}, 463 463 {"Name": "spindles", "Icon": "spool"}, 464 + {"Name": "sites", "Icon": "globe"}, 464 465 }, 465 466 "RepoSettingsTabs": []tab{ 466 467 {"Name": "general", "Icon": "sliders-horizontal"},
+13
appview/pages/pages.go
··· 430 430 return p.execute("user/settings/notifications", w, params) 431 431 } 432 432 433 + type UserSiteSettingsParams struct { 434 + LoggedInUser *oauth.MultiAccountUser 435 + Claim *models.DomainClaim 436 + SitesDomain string 437 + IsTnglHandle bool 438 + Tab string 439 + } 440 + 441 + func (p *Pages) UserSiteSettings(w io.Writer, params UserSiteSettingsParams) error { 442 + params.Tab = "sites" 443 + return p.execute("user/settings/sites", w, params) 444 + } 445 + 433 446 type UpgradeBannerParams struct { 434 447 Registrations []models.Registration 435 448 Spindles []models.Spindle