mlmym/templates/xhr.html

22 lines
645 B
HTML
Raw Permalink Normal View History

{{ $state := . }}
2023-07-05 22:34:46 +00:00
{{ if or .PostID .CommentID }}
2023-06-30 19:41:35 +00:00
{{ range $i, $comment := .Comments }}
{{ template "comment.html" $comment }}
{{ end }}
{{ else if .Activities }}
{{ template "activities.html" . }}
{{ else if .Posts }}
2023-06-30 19:41:35 +00:00
{{ range $post := .Posts }}
{{ template "post.html" $post }}
{{ end }}
{{ else if .Communities }}
{{ range .Communities }}
{{ if not $state.Page }}
<a href="/{{ $state.Host}}/{{ if .Community.Local }}c/{{.Community.Name}}{{else}}{{ localize .Community.ActorID }}{{end}}">{{fullcname .Community }}</a>
{{ else }}
{{ template "community.html" . }}
{{ end }}
{{ end }}
{{ else }}
2023-06-30 19:41:35 +00:00
{{ end }}