2023-06-30 19:41:35 +00:00
<!DOCTYPE html>
< head >
2023-07-02 21:29:35 +00:00
< title > {{ if and .Community (ne .Community.CommunityView.Community.Title "")}}{{.Community.CommunityView.Community.Title}}{{else if ne .CommunityName ""}}/c/{{.CommunityName}}{{ else if .User}}overview for {{.User.PersonView.Person.Name}}{{else}}{{ host .Host }}{{end}}< / title >
2024-05-11 00:53:58 +00:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
2023-06-30 19:41:35 +00:00
< link rel = "shortcut icon" href = "/{{.Host}}/icon.jpg" >
2023-07-27 01:07:39 +00:00
< link rel = "stylesheet" href = "/_/static/style.css?v={{ .Version }}" >
2024-05-11 00:53:58 +00:00
{{- if or (not .Dark) (is .Dark) }}
< link rel = "stylesheet" href = "/_/static/dark.css?v={{ .Version }}" { { if not . Dark } } media = "(prefers-color-scheme:dark)" { { end } } >
{{- end }}
2023-06-30 19:41:35 +00:00
< / head >
2024-05-11 00:53:58 +00:00
< body >
2023-06-30 19:41:35 +00:00
< noscript >
2023-07-27 01:07:39 +00:00
< link rel = "stylesheet" href = "/_/static/noscript.css?v={{ .Version }}" >
2023-06-30 19:41:35 +00:00
< / noscript >
{{ template "nav.html" . -}}
2024-05-12 04:09:05 +00:00
{{- if and (not .ShowNSFW) .Community .Community.CommunityView.Community.NSFW }}
{{ template "nsfw.html" }}
{{- else }}
2023-07-03 00:11:13 +00:00
< main >
2024-05-12 04:09:05 +00:00
{{- if and (not .Community) .Tagline }}
< h3 >
{{ markdown .Host .Tagline }}
< / h3 >
{{- end }}
{{ template "menu.html" . }}
{{- if .Error }}
2023-07-16 02:07:19 +00:00
< div class = "error" >
{{.Error}}.
{{ if .Unknown }}
try remote instance: < a href = "{{ .Unknown }}" > {{ .Unknown }}< / a >
{{ end }}
< / div >
2023-07-05 13:49:41 +00:00
{{ end }}
2023-06-30 19:41:35 +00:00
2024-05-12 04:09:05 +00:00
{{- range .Posts }}
2023-07-05 13:49:41 +00:00
{{ template "post.html" . }}
{{ end }}
2024-05-12 04:09:05 +00:00
{{- if or (and (not .Op) (not .Activities) (not .Comments) (not .Posts) (not .Communities)) (and (not .Comments) .PostID) (and (not .Activities) (not .Query) .User) }}
2023-07-05 13:49:41 +00:00
< div class = "error" > there doesn't seem to be anything here< / div >
{{ end }}
2023-06-30 19:41:35 +00:00
2024-05-12 04:09:05 +00:00
{{- if or .Query (eq .SearchType "Communities") (eq (len .Posts) 25) (and .Comments (and (eq .CommentCount 200) (gt (index .Posts 0).Counts.Comments .CommentCount))) (and .User (or (gt .User.PersonView.Counts.CommentCount 10) (gt .User.PersonView.Counts.PostCount 10))) }}
2023-07-05 13:49:41 +00:00
< div class = "pager" >
view more: {{if gt .Page 1 }}< a href = "{{ .PrevPage }}" > ‹ prev< / a > {{ end }} < a href = "{{ .NextPage }}" > next › < / a >
< / div >
2023-07-10 15:53:15 +00:00
< input id = "loadmore" type = "submit" value = "load more" data-page = "2" >
2023-07-05 13:49:41 +00:00
{{ end }}
2023-06-30 19:41:35 +00:00
2023-07-05 13:49:41 +00:00
{{ template "sidebar.html" . }}
2023-06-30 19:41:35 +00:00
< / main >
2023-07-05 13:49:41 +00:00
{{ end }}
2023-07-27 01:07:39 +00:00
< script src = "/_/static/utils.js?v={{ .Version }}" > < / script >
2023-06-30 19:41:35 +00:00
< / body >
< / html >