Posts and threads as sub-pages of forum on user profiles

This commit is contained in:
2017-11-17 11:00:49 +01:00
parent 3dc9a2e7bf
commit 900148b788
5 changed files with 18 additions and 8 deletions

View File

@ -1,5 +1,11 @@
component ProfileForumTabs(viewUser *arn.User)
.tabs
Tab("Threads", "list", "/+" + viewUser.Nick + "/forum/threads")
Tab("Posts", "comments", "/+" + viewUser.Nick + "/forum/posts")
component LatestPosts(postables []arn.Postable, viewUser *arn.User, user *arn.User, uri string)
ProfileHeader(viewUser, user, uri)
ProfileForumTabs(viewUser)
if len(postables) > 0
h1.page-title= len(postables), " latest posts by ", postables[0].Author().Nick