{{define "title"}}Upload a Photo{{end}} {{define "content"}}

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

{{ $Root := . }} {{ $User := .CurrentUser }} {{ $Comments := .CommentMap.Get .Photo.ID }}
{{if gt .User.ProfilePhoto.ID 0}} {{else}} {{end}}
{{if eq .Photo.Visibility "friends"}} {{else if eq .Photo.Visibility "private"}} {{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}}