14 lines
563 B
Plaintext
Raw Normal View History

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