Threaded comments

This commit is contained in:
2018-11-05 19:05:36 +09:00
parent e74253df96
commit 08497f0c37
13 changed files with 109 additions and 217 deletions

View File

@ -1,12 +1,9 @@
component Thread(thread *arn.Thread, posts []*arn.Post, user *arn.User)
component Thread(thread *arn.Thread, user *arn.User)
h1.thread-title= thread.Title
#thread.thread(data-id=thread.ID)
.posts
Postable(thread, user, "", thread.Creator().ID)
each post in posts
Postable(post, user, "", thread.Creator().ID)
Postable(thread, user, true, "", thread.Creator().ID)
//- Reply
if user != nil