2018-10-31 05:27:48 +00:00
|
|
|
component ActivityFeed(entries []*arn.EditLogEntry, user *arn.User)
|
|
|
|
h1 Activity
|
|
|
|
|
|
|
|
.activities
|
|
|
|
each entry in entries
|
2018-11-05 11:57:37 +00:00
|
|
|
ActivityPost(entry.Object().(arn.Postable), user)
|
2018-10-31 05:27:48 +00:00
|
|
|
|
2018-11-05 04:19:42 +00:00
|
|
|
component ActivityPost(post arn.Postable, user *arn.User)
|
|
|
|
if post.Parent() != nil
|
2018-11-05 10:05:36 +00:00
|
|
|
Postable(post, user, false, fmt.Sprintf(`<p class="activity-header"><a href="%s">%s</a></p>`, post.Parent().Link(), html.EscapeString(post.Parent().TitleByUser(user))), "")
|
2018-11-05 04:19:42 +00:00
|
|
|
else
|
2018-11-05 10:05:36 +00:00
|
|
|
Postable(post, user, false, fmt.Sprintf(`<p class="activity-header"><a href="%s">%s</a></p>`, post.Link(), html.EscapeString(post.TitleByUser(user))), "")
|