{{ 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

    {{ range .RSVP }}
  • {{ if .Contact }} {{ .Contact.Name }} {{ else }} {{ .Name }} {{ end }}
    {{ .Status }} {{ if and $.LoggedIn $.CurrentUser.Admin }} {{ if not .Notified }} not notified {{ end }} {{ end }}
  • {{ end }}
{{ 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 }}