2018-10-31 05:27:48 +00:00
|
|
|
component ActivityFeed(entries []*arn.EditLogEntry, user *arn.User)
|
|
|
|
h1 Activity
|
|
|
|
|
|
|
|
.activities
|
|
|
|
each entry in entries
|
|
|
|
if entry.ObjectType == "Post"
|
|
|
|
.activity
|
|
|
|
ActivityPost(entry.Object().(*arn.Post), user)
|
|
|
|
|
|
|
|
component ActivityPost(post *arn.Post, user *arn.User)
|
|
|
|
//- .activity-header.mountable
|
|
|
|
//- a(href=post.Creator().Link())= post.Creator().Nick
|
|
|
|
//- span commented on
|
|
|
|
//- a(href=post.Parent().Link())= post.Parent().TitleByUser(user)
|
|
|
|
|
2018-11-05 03:55:12 +00:00
|
|
|
Postable(post, user, fmt.Sprintf(`<p class="activity-header"><a href="%s">%s</a></p>`, post.Parent().Link(), html.EscapeString(post.Parent().TitleByUser(user))), "")
|