{{/* abono/done: GET /subscribe/done, where Checkout sends the reader back. Paid, it thanks them; a reader who paid signed out is asked to sign in with the address they paid with. Processing (Checkout completed, the payment still on its way), it says so and offers no second purchase. Not paid, it says nothing was charged and offers the plans again. Data: Title string, the page title's message key Paid bool Processing bool, complete but the payment still processing Email string, the address paid with SignedIn bool AccountURL string, the account page PlansURL string, the pricing page Error string, a message key, or "" L the request's localizer */}} {{define "content"}}{{$L := localizer $}} {{template "page-header" dict "L" $L "Title" (T $L .Title)}} {{if .Paid}}

{{T $L "abono.pages.done_paid"}}

{{if .SignedIn}}

{{T $L "abono.button.go_to_account"}}

{{else}}

{{Tf $L "abono.pages.done_signin" "email" .Email}}

{{end}} {{else if .Processing}}

{{T $L "abono.pages.done_processing"}}

{{if .SignedIn}}

{{T $L "abono.button.go_to_account"}}

{{end}} {{else if .Error}} {{template "callout" dict "L" $L "Tone" "negative" "Focus" true "Body" (T $L .Error)}} {{if .SignedIn}}

{{T $L "abono.button.go_to_account"}}

{{end}} {{else}}

{{T $L "abono.pages.done_unpaid_body"}}

{{T $L "abono.button.try_again"}}

{{end}} {{end}}