mirror of
https://github.com/rystaf/mlmym.git
synced 2024-11-21 21:27:15 +00:00
22 lines
645 B
HTML
22 lines
645 B
HTML
{{ $state := . }}
|
|
{{ if or .PostID .CommentID }}
|
|
{{ range $i, $comment := .Comments }}
|
|
{{ template "comment.html" $comment }}
|
|
{{ end }}
|
|
{{ else if .Activities }}
|
|
{{ template "activities.html" . }}
|
|
{{ else if .Posts }}
|
|
{{ 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 }}
|
|
{{ end }}
|