Make the 'older' button load more in the page
This commit is contained in:
parent
3782d6cd2f
commit
9a7d797e54
|
@ -21,6 +21,7 @@
|
||||||
<hr class="is-hidden">
|
<hr class="is-hidden">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<h1 class="title">Your {{ timeline_name }} timeline</h1>
|
<h1 class="title">Your {{ timeline_name }} timeline</h1>
|
||||||
|
<div id="timeline">
|
||||||
{% for toot in toots %}
|
{% for toot in toots %}
|
||||||
{% if toot.reblog %}
|
{% 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 %}
|
{% include "main/toot_partial.html" with toot=toot.reblog reblog=True reblog_by=toot.account.acct reblog_icon=toot.account.avatar_static %}
|
||||||
|
@ -31,15 +32,27 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% block pagination %}
|
{% block pagination %}
|
||||||
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
|
<div class="around-pagination">
|
||||||
{% if prev %}
|
<div class="columns">
|
||||||
<a class="pagination-next" href="{% url 'home_prev' prev.since_id %}">Newer</a>
|
|
||||||
{% endif %}
|
|
||||||
{% if next %}
|
{% if next %}
|
||||||
<a class="pagination-previous" href="{% url 'home_next' next.max_id %}">Older</a>
|
<p class="column is-one-quarter"></p>
|
||||||
|
<p class="column">
|
||||||
|
<a class="pagination-previous is-fullwidth button"
|
||||||
|
href="{% url 'home_next' next.max_id %}"
|
||||||
|
ic-get-from="{% url 'home_next' next.max_id %}"
|
||||||
|
ic-select-from-response="#timeline"
|
||||||
|
ic-indicator="#page-load-indicator"
|
||||||
|
ic-target="closest div.around-pagination"
|
||||||
|
>
|
||||||
|
Older
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
<p class="column is-one-quarter"></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</nav>
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_scripts_inline %}
|
{% block page_scripts_inline %}
|
||||||
|
|
Loading…
Reference in New Issue