2017-11-17 10:00:49 +00:00
|
|
|
component ProfileForumTabs(viewUser *arn.User)
|
|
|
|
.tabs
|
|
|
|
Tab("Threads", "list", "/+" + viewUser.Nick + "/forum/threads")
|
|
|
|
Tab("Posts", "comments", "/+" + viewUser.Nick + "/forum/posts")
|
|
|
|
|
2017-07-06 01:24:56 +00:00
|
|
|
component LatestPosts(postables []arn.Postable, viewUser *arn.User, user *arn.User, uri string)
|
|
|
|
ProfileHeader(viewUser, user, uri)
|
2017-11-17 10:00:49 +00:00
|
|
|
ProfileForumTabs(viewUser)
|
2017-07-03 15:21:00 +00:00
|
|
|
|
2017-06-22 16:04:14 +00:00
|
|
|
if len(postables) > 0
|
2018-04-08 10:01:18 +00:00
|
|
|
h1.page-title= len(postables), " latest posts by ", postables[0].Creator().Nick
|
2017-07-06 14:54:10 +00:00
|
|
|
PostableList(postables, user)
|
2017-06-22 16:04:14 +00:00
|
|
|
else
|
2017-07-03 15:33:57 +00:00
|
|
|
p.no-data.mountable= viewUser.Nick + " hasn't written any posts yet."
|