{{ $state := . }} {{ range $i, $activity := .Activities}}
{{ if $activity.Comment }}
{{ if not $state.User }} comment on {{ end }} {{ $activity.Comment.P.Post.Name}} {{ if $state.User}} by {{$state.User.PersonView.Person.Name }} {{ end }} in /c/{{ $activity.Comment.P.Community.Name }}
{{ template "comment.html" $activity.Comment }} {{ else if $activity.Post }} {{ template "post.html" $activity.Post }} {{ else if $activity.Message }}
message {{ if eq $activity.Message.Creator.ID $state.Session.UserID }} to {{ $activity.Message.Recipient.Name }} {{ else }} from {{ $activity.Message.Creator.Name }} {{end}} sent {{ humanize $activity.Message.PrivateMessage.Published.Time }}
{{ markdown "" $activity.Message.PrivateMessage.Content }}
{{ end }}
{{ end }}