Add timeline include template
This commit is contained in:
parent
c717153fa1
commit
d13956fe83
13
internal/webserver/tpl/tweet_page_includes/timeline.tpl
Normal file
13
internal/webserver/tpl/tweet_page_includes/timeline.tpl
Normal file
@ -0,0 +1,13 @@
|
||||
{{define "timeline"}}
|
||||
{{range .Items}}
|
||||
{{template "tweet" .}}
|
||||
{{end}}
|
||||
{{if .CursorBottom.CursorPosition.IsEnd}}
|
||||
<p>End of feed</p>
|
||||
{{else}}
|
||||
<button class="show-more"
|
||||
hx-get="?cursor={{.CursorBottom.CursorValue}}"
|
||||
hx-swap="outerHTML"
|
||||
>Show more</button>
|
||||
{{end}}
|
||||
{{end}}
|
Loading…
x
Reference in New Issue
Block a user