{{- if or (not .Dark) (is .Dark) }} {{- end }} {{ template "nav.html" . -}} {{- if and (not .ShowNSFW) .Community .Community.CommunityView.Community.NSFW }} {{ template "nsfw.html" }} {{- else }}
{{- template "sidebar.html" . }} {{- if or (.Query) (.SearchType) (and (not .PostID) (not .User) (not .Activities) (eq .Op ""))}} {{ template "menu.html" . }} {{- end}} {{- if or (ne .SearchType "") (ne .Query "") .Communities }} {{- end}} {{- if .Error }}
{{.Error}}. {{ if .Unknown }} try remote instance: {{ .Unknown }} {{ end }}
{{ 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 controversial new old
{{- if and .Session (ne .Op "edit_post") }}
{{ template "create_comment.html" . }}
{{- end }} {{- end }} {{- end}} {{- if and .User .Activities }} {{- 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 -}} {{- range .Communities }} {{ template "community.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 }} {{- if .Watch }} {{- end }}
{{- end }}