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