{{ template "nav.html" . -}} {{ if and (not .ShowNSFW) .Community .Community.CommunityView.Community.NSFW }} {{ template "nsfw.html" }} {{ else }}
{{ if or (contains .Sort "Top") (and (not .PostID) (not .User) (not .Community) (not .Activities) (eq .Op ""))}} {{ template "menu.html" . }} {{ end}} {{ if or (ne .Query "") .Communities }} {{ end}} {{ if .Error }}
{{.Error}}. {{ if .Unknown }} try remote instance: {{ .Unknown }} {{ end }}
{{ end }} {{ range .Communities }} {{ template "community.html" . }} {{ end }} {{ if eq .Op "create_community" "edit_community" }} {{ template "create_community.html" . }} {{ end }} {{ range .Posts }} {{ template "post.html" . }} {{ end }} {{ if eq .Op "create_post" "edit_post" }} {{ template "create_post.html" . }} {{ end }} {{ if and .PostID .Posts}} {{ if .CommentID}}
you are viewing a single comment's thread
view the rest of the comments
{{ else }}
{{if .Comments}}{{if gt .Page 1}}(page {{ .Page }}) {{else if lt (index .Posts 0).Counts.Comments .CommentCount }}all{{else}}top{{end}} {{.CommentCount}} comments{{else}} no comments (yet){{end}}
sorted by: hot top new old
{{ if and .Session (ne .Op "edit_post") }}
{{ end }} {{ end }} {{ end}} {{ range $i, $comment := .Comments }} {{ template "comment.html" $comment }} {{ end }} {{ if and .Comments .Posts (gt (index .Posts 0).Counts.Comments .CommentCount) (not .CommentID)}} {{ end }} {{ if eq .Op "send_message" }} {{ template "send_message.html" . }} {{ else }} {{ template "activities.html" . }} {{ end }} {{ if or (and (not .Op) (not .Activities) (not .Comments) (not .Posts) (not .Communities)) (and (not .Comments) .PostID) (and (not .Activities) (not .Query) .User) }}
there doesn't seem to be anything here
{{ end }} {{ if or .Query (eq .SearchType "Communities") (eq (len .Posts) 25) (and .Comments (gt (index .Posts 0).Counts.Comments .CommentCount) (not .CommentID)) (and .User (or (gt .User.PersonView.Counts.CommentCount 10) (gt .User.PersonView.Counts.PostCount 10))) }}
view more: {{if gt .Page 1 }}‹ prev{{ end }} next ›
{{ if not .PostID }} {{ end }} {{ end }} {{ template "sidebar.html" . }}
{{ end }}