New user profile

This commit is contained in:
2018-11-15 20:19:40 +09:00
parent a1c11a2eae
commit d5dff615c1
29 changed files with 271 additions and 141 deletions

View File

@ -19,5 +19,5 @@ func ReplyUI(ctx *aero.Context) string {
return ctx.Error(http.StatusNotFound, "Thread not found", err)
}
return ctx.HTML(components.NewPostArea(user, "Reply") + components.NewPostActions(thread.Type(), thread.ID, true))
return ctx.HTML(components.NewPostArea(thread, user, "Reply") + components.NewPostActions(thread, true))
}

View File

@ -11,11 +11,11 @@ component Thread(thread *arn.Thread, user *arn.User)
footer.footer.mountable
p.text-center This topic is locked.
else
NewPostArea(user, "Reply")
NewPostArea(thread, user, "Reply")
.buttons
if !thread.Locked
NewPostActions("Thread", thread.ID, false)
NewPostActions(thread, false)
if user.Role == "admin" || user.Role == "editor"
if thread.Locked