Added infinite scrolling

This commit is contained in:
2017-10-16 12:56:46 +02:00
parent 8fdeb97de9
commit 555582836c
7 changed files with 93 additions and 18 deletions

View File

@ -8,8 +8,8 @@ component Forum(tag string, threads []*arn.Thread, threadsPerPage int)
button#new-thread.action(data-action="load", data-trigger="click", data-url="/new/thread")
Icon("plus")
span New thread
if len(threads) == threadsPerPage
LoadMore
//- if len(threads) == threadsPerPage
//- LoadMore
component ThreadList(threads []*arn.Thread)
if len(threads) == 0