{{define "referralOffers"}}
Name
Give Credit
Get Credit
Redeemable Capacity
Created
Expiration
Status

Default Offer

{{$defaultOffer := .ReferralOffers.Default}} {{if not $defaultOffer.IsEmpty}}
{{$defaultOffer.Name}}
${{$defaultOffer.InviteeCredit}}
${{$defaultOffer.AwardCredit}}
{{printf "%.10s" $defaultOffer.CreatedAt}}

{{end}}

Current Offer

{{$currentOffer := .ReferralOffers.Active}} {{if not $currentOffer.IsEmpty}}
{{$currentOffer.Name}}
${{$currentOffer.InviteeCredit}}
${{$currentOffer.AwardCredit}}
{{$currentOffer.RedeemableCap}}
{{printf "%.10s" $currentOffer.CreatedAt}}
{{printf "%.10s" $currentOffer.ExpiresAt}}
Live ·

{{end}} {{template "stopReferralOffer" .}}

Discontinued Offers

{{range .ReferralOffers.Done}}
{{.Name}}
${{.InviteeCredit}}
${{.AwardCredit}}
{{.RedeemableCap}}
{{printf "%.10s" .CreatedAt}}
{{printf "%.10s" .ExpiresAt}}
off

{{end}}
{{end}}