Phase 14, part 4: what happens when it lapses
An hourly platform job: a trial over without a subscription goes to Free; past due, the owner is told and every page has a banner; at 14 days read-only; at 53 days everyone is warned; at 60 days the team is deleted with 30 days to undo. Each email once. Undoing a deletion for not paying gives a week more. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -815,6 +815,7 @@ type page struct {
|
||||
TeamID int64 // the team they\'re working in
|
||||
Multi bool // the multi-tenant edition
|
||||
Billing bool // teams are billed (multi-tenant)
|
||||
Lapse string // the team\'s payment is overdue: what the banner says
|
||||
Viewer *viewer // who's looking
|
||||
}
|
||||
|
||||
@@ -894,6 +895,7 @@ func (s *Server) render(w http.ResponseWriter, r *http.Request, name string, p p
|
||||
if !p.Bare {
|
||||
p.Approvals = s.waitingFor(p.Viewer)
|
||||
p.Teams, p.TeamID = s.teamsOf(p.Viewer), s.team()
|
||||
p.Lapse = s.lapseBanner()
|
||||
}
|
||||
p.Multi, p.Billing = s.multi(), s.billingOn()
|
||||
out, err := withCSRF(r, func(b *bytes.Buffer) error { return t.ExecuteTemplate(b, "layout.html", p) })
|
||||
|
||||
Reference in New Issue
Block a user