{{define "user-navigation"}} {{if .SingleUser}} {{.SiteName}} Customize Stats {{if .IsAdmin}}Admin{{end}} Settings Export Log out Drafts New Post {{else}} {{ if .Chorus }} {{.SiteName}} {{ else }} {{.SiteName}} {{ end }} {{if .Username}} {{.Username}} {{if .IsAdmin}}Admin dashboard{{end}} Account settings Export {{if .CanInvite}}Invite people{{end}} Log out {{end}} {{if .SimpleNav}} {{ if not .SingleUser }} {{if and (and .LocalTimeline .CanViewReader) .Chorus}}Home{{end}} {{ end }} About {{ if not .SingleUser }} {{ if .Username }} {{if gt .MaxBlogs 1}}Blogs{{end}} {{if and .Chorus (eq .MaxBlogs 1)}}My Posts{{end}} {{if not .DisableDrafts}}Drafts{{end}} {{ end }} {{if and (and .LocalTimeline .CanViewReader) (not .Chorus)}}Reader{{end}} {{if and (and (and .Chorus .OpenRegistration) (not .Username)) (or (not .Private) (ne .Landing ""))}}Sign up{{end}} {{if .Username}}Log out{{else}}Log in{{end}} {{ end }} {{else}} Blogs {{if not .DisableDrafts}}Drafts{{end}} {{end}} {{if .Chorus}}{{if .Username}} New Post {{end}} {{end}} {{end}} {{end}} {{define "header"}}