Monorepo for Tangled tangled.org

appview/pages: add sites settings page

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

anirudh.fi 9beee933 598f5cdb

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