{{template "base" .}} {{define "content"}} {{$d := .}}

{{$d.T.Get "people.title"}}

{{$d.T.Get "people.tab_sharing"}} {{$d.T.Get "people.tab_household"}}
{{if eq $d.Tab "sharing"}}

{{$d.T.Get "people.sharing.grant_title"}}

{{$d.T.Get "people.sharing.grant_desc"}}

{{if $d.Viewers}}

{{$d.T.Get "people.sharing.viewers_title"}}

{{range $d.Viewers}}
{{.Email}}
{{end}}
{{end}} {{if $d.Granted}}

{{$d.T.Get "people.sharing.granted_title"}}

{{range $d.Granted}}
{{.OwnerID}} {{$d.T.Get "people.sharing.view_link"}}
{{end}}
{{end}} {{if and (not $d.Viewers) (not $d.Granted)}}
{{$d.T.Get "people.sharing.no_sharing_msg"}}
{{end}} {{else}}{{/* household tab */}} {{if not $d.HasHousehold}}

{{$d.T.Get "people.household.link_title"}}

{{$d.T.Get "people.household.link_desc"}}

{{else}}
{{$d.T.Get "people.household.linked_partner"}}
{{$d.PartnerEmail}}
€{{cents $d.CombinedIncomeCents}}
€{{cents $d.MyIncomeCents}}
€{{cents $d.PartnerIncomeCents}}
€{{cents $d.CombinedExpenseCents}}
{{if lt $d.CombinedDisposable 0}}-{{end}}€{{cents (centsAbs $d.CombinedDisposable)}}
{{if or $d.MyGoals $d.PartnerGoals}}

{{$d.T.Get "people.household.your_goals"}}

{{range $d.MyGoals}}
{{.Name}} {{if .Committed}}{{$d.T.Get "people.household.committed_badge"}}{{end}}
{{else}}
{{$d.T.Get "people.household.no_goals"}}
{{end}}

{{$d.T.Get "people.household.partner_goals"}}

{{range $d.PartnerGoals}}
{{.Name}} {{if .Committed}}{{$d.T.Get "people.household.committed_badge"}}{{end}}
{{else}}
{{$d.T.Get "people.household.no_goals"}}
{{end}}
{{end}} {{end}}{{/* HasHousehold */}} {{end}}{{/* tab */}} {{end}}