From 9a7d797e547bee7bceef25dbc2df47ce9aae6724 Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Mon, 24 Sep 2018 11:11:08 -0400 Subject: [PATCH] Make the 'older' button load more in the page --- brutaldon/templates/main/timeline.html | 49 ++++++++++++++++---------- 1 file changed, 31 insertions(+), 18 deletions(-) diff --git a/brutaldon/templates/main/timeline.html b/brutaldon/templates/main/timeline.html index 2f8f200..06e500f 100644 --- a/brutaldon/templates/main/timeline.html +++ b/brutaldon/templates/main/timeline.html @@ -21,25 +21,38 @@ {% endif %}

Your {{ timeline_name }} timeline

- {% for toot in toots %} - {% if toot.reblog %} - {% include "main/toot_partial.html" with toot=toot.reblog reblog=True reblog_by=toot.account.acct reblog_icon=toot.account.avatar_static %} - {% else %} - {% include "main/toot_partial.html" with toot=toot reblog=False %} - {% endif %} - - {% endfor %} +
+ {% for toot in toots %} + {% if toot.reblog %} + {% include "main/toot_partial.html" with toot=toot.reblog reblog=True reblog_by=toot.account.acct reblog_icon=toot.account.avatar_static %} + {% else %} + {% include "main/toot_partial.html" with toot=toot reblog=False %} + {% endif %} + + {% endfor %} - {% block pagination %} - - {% endblock %} + {% block pagination %} +
+
+ {% if next %} +

+

+ + Older + +

+

+ {% endif %} +
+
+ {% endblock %} +
{% endblock %} {% block page_scripts_inline %}