{{define "user-navigation"}} {{if .SingleUser}} {{.SiteName}} {{if .IsAdmin}}Admin dashboard{{end}} Account settings Import posts Export Log out Customize Stats Drafts New Post {{else}} {{.SiteName}} {{if .Username}} {{.Username}} {{if .IsAdmin}}Admin dashboard{{end}} Account settings Import posts 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}} {{if and (and .LocalTimeline .CanViewReader) (not .Chorus)}}Reader{{end}} {{end}} {{if .Username}} New Post {{end}} {{end}} {{end}} {{define "header"}}