{{define "gallery-item"}} Hummingbard {{template "common-head" .}}
{{if .LoggedInUser}} {{template "nav" Map "Page" .}} {{end}}
{{template "header" Map "Page" . "Name" "timeline"}}
{{if gt (len .Room.Avatar) 0}} {{$hms := .HomeServerURL}} {{$mxc := .Room.Avatar}}
{{else}}
{{end}}
{{$path := .Room.Path}} {{$ln := len .Room.PathItems}} {{$sin := eq (len .Room.PathItems) 1 }} {{range $id, $val := .Room.PathItems}} {{$last := IsLastItem $id $ln}} {{$mtc := or (eq $val.Path $path) ($sin)}} {{$val.Item}} {{if not $last}} / {{end}} {{end}}
{{if and .LoggedInUser (not .IsPermalink)}} {{if or (and .IsUserProfile .IsOwner) (and (not .IsUserProfile) (or .IsOwner .IsMember))}}
{{end}} {{end}}
{{if or .IsAdmin .IsOwner}}
{{end}} {{$hms := .HomeServerURL}} {{if .IsPermalink}} {{$ppost := .PermalinkedPost}} {{$rpth := .Room.Path}} {{$liu := .LoggedInUser}}
{{template "timeline-event" Map "Event" $ppost "HomeServerURL" $hms "PermalinkedPost" true "RoomPath" $rpth "LoggedInUser" $liu "Gallery" true}}
{{if and .LoggedInUser}}
{{end}} {{if and .LoggedInUser }}
{{end}}
{{if .IsReplyPermalink}}
See All Replies
{{end}} {{if .Posts}}
{{else}}
No Replies
{{end}}
{{end}} {{if and .Posts (not .IsPermalink)}} {{end}}
{{template "timeline-sidebar" .}}
{{template "state" .}}
{{end}}