{{define "title"}}Photo: {{or .Photo.Caption "No caption"}}{{end}} {{define "content"}}

{{or .Photo.Caption "Photo"}}

{{ $Root := . }} {{ $User := .CurrentUser }} {{ $Comments := .CommentMap.Get .Photo.ID }}
{{template "avatar-24x24" .User}}
{{if eq .Photo.Visibility "friends"}} {{else if eq .Photo.Visibility "private"}} {{else}} {{end}}
{{if HasSuffix .Photo.Filename ".mp4"}} {{else}} {{end}}
{{if .Photo.Caption}} {{.Photo.Caption}} {{else}}No caption{{end}}
{{$Like := .LikeMap.Get .Photo.ID}}
{{if or .IsOwnPhoto .CurrentUser.IsAdmin}} {{end}} {{if not .IsOwnPhoto}} {{end}}

{{$Comments}} Comment{{Pluralize64 $Comments}}

{{InputCSRF}}

Markdown formatting supported.


{{if not .IsOwnPhoto}}

{{if .IsSubscribed}} Disable notifications about this comment thread {{else}} Enable notifications about this comment thread {{end}}

{{end}} {{if eq $Comments 0}}

There are no comments yet.

{{else}} {{range .Comments}} {{end}} {{end}}
{{end}}