mirror of
https://github.com/rystaf/mlmym.git
synced 2024-11-05 06:43:21 +00:00
65 lines
2.2 KiB
HTML
65 lines
2.2 KiB
HTML
<!DOCTYPE html>
|
||
<head>
|
||
<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>
|
||
<link rel="shortcut icon" href="/{{.Host}}/icon.jpg">
|
||
<link rel="stylesheet" href="/_/static/style.css?v=28">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||
</head>
|
||
<body {{ if .Dark }}class="dark"{{end}}>
|
||
<noscript>
|
||
<style>
|
||
.expando-button,
|
||
.minimize,
|
||
#loadmore,
|
||
#showimages,
|
||
.hidechildren {
|
||
display: none;
|
||
}
|
||
div.pager {
|
||
display: block;
|
||
}
|
||
.post .expando .image img {
|
||
visibility: visible;
|
||
}
|
||
</style>
|
||
</noscript>
|
||
|
||
{{ template "nav.html" . -}}
|
||
{{ if and (not .ShowNSFW) .Community .Community.CommunityView.Community.NSFW }}
|
||
{{ template "nsfw.html" }}
|
||
{{ else }}
|
||
<main>
|
||
{{ template "menu.html" . }}
|
||
|
||
{{ if .Error }}
|
||
<div class="error">
|
||
{{.Error}}.
|
||
{{ if .Unknown }}
|
||
try remote instance: <a href="{{ .Unknown }}">{{ .Unknown }}</a>
|
||
{{ end }}
|
||
</div>
|
||
{{ end }}
|
||
|
||
{{ range .Posts }}
|
||
{{ template "post.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) }}
|
||
<div class="error">there doesn't seem to be anything here</div>
|
||
{{ end }}
|
||
|
||
|
||
{{ 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))) }}
|
||
<div class="pager">
|
||
view more: {{if gt .Page 1 }}<a href="{{ .PrevPage }}">‹ prev</a>{{ end }} <a href="{{ .NextPage }}">next ›</a>
|
||
</div>
|
||
<input id="loadmore" type="submit" value="load more" data-page="2">
|
||
{{ end }}
|
||
|
||
{{ template "sidebar.html" . }}
|
||
</main>
|
||
{{ end }}
|
||
<script src="/_/static/utils.js?v=22"></script>
|
||
</body>
|
||
</html>
|