{{ define "title" }}{{ .Data.event.Title }}{{ end }} {{ define "content" }} {{ $authedContact := .Data.authedContact }} {{ $authedRSVP := .Data.authedRSVP }} {{ with .Data.event }} {{ if and $authedContact $authedRSVP.ID }}

{{ $authedContact.Name }}, you have been invited to...

[not {{ $authedContact.Name }}?]

{{ end }}

{{ .Title }}

{{ TrustedMarkdown .Description }}
{{ if .Location }}

Location

{{ .Location }}
{{ end }}

Time

{{ .StartTime.Format "January 2 @ 3:04 PM" }} {{ if not .EndTime.IsZero }} to
{{ if .AllDay }} {{ .EndTime.Format "January 2" }} {{ else }} {{ .EndTime.Format "January 2 @ 3:04 PM" }} {{ end }} {{ end }}

Invited

{{ if $.Data.countGoing }}

{{ $.Data.countGoing }} {{ if eq $.Data.countGoing 1 }}person is{{ else }}people are{{ end }} going:

{{ end }}
    {{ range .RSVP }}
  • {{ if .Contact }} {{ .Contact.Name }} {{ else }} {{ .Name }} {{ end }}
    {{ .Status }} {{ if and $.LoggedIn $.CurrentUser.Admin }} {{ if not .Notified }} not notified {{ end }} {{ end }}
  • {{ end }}

{{ $.Data.countInvited }} invited.

{{ end }} {{ if and .LoggedIn .CurrentUser.Admin }}
edit event invite people
{{ end }}

Comments

{{ $idStr := printf "%d" .Data.event.ID }} {{ RenderComments .Request .Data.event.Title "event" $idStr }} {{ end }}