2023-08-17 14:22:40 -03:00
|
|
|
{{define "timeline"}}
|
|
|
|
{{range .Items}}
|
|
|
|
{{template "tweet" .}}
|
|
|
|
{{end}}
|
2024-03-02 13:39:25 -08:00
|
|
|
|
2024-04-05 15:49:19 -07:00
|
|
|
<div class="timeline__bottom">
|
|
|
|
{{if .CursorBottom.CursorPosition.IsEnd}}
|
|
|
|
<label class="timeline__eof-label">End of feed</label>
|
|
|
|
{{else}}
|
|
|
|
<a class="timeline__show-more-button button"
|
|
|
|
hx-get="?{{(cursor_to_query_params .CursorBottom)}}"
|
|
|
|
hx-target=".timeline__bottom"
|
|
|
|
hx-swap="outerHTML"
|
|
|
|
>Show more</a>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2023-08-17 14:22:40 -03:00
|
|
|
{{end}}
|