Fix paths for user paging

This commit is contained in:
Jason McBrayer 2018-06-24 17:16:28 -04:00
parent dfd1db618d
commit 66c351f9e3
2 changed files with 4 additions and 2 deletions

View File

@ -102,10 +102,10 @@ Brutaldon - {{ user.acct }} timelime
{% endfor %}
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
{% if prev %}
<a class="pagination-next" href="{% url 'note_prev' prev.since_id %}">Newer</a>
<a class="pagination-next" href="{% url 'user_prev' prev.since_id %}">Newer</a>
{% endif %}
{% if next %}
<a class="pagination-previous" href="{% url 'note_next' next.max_id %}">Older</a>
<a class="pagination-previous" href="{% url 'user_next' next.max_id %}">Older</a>
{% endif %}
</nav>

View File

@ -42,6 +42,8 @@ urlpatterns = [
path('thread/<int:id>', views.thread, name='thread'),
path('tags/<tag>', views.tag, name='tag'),
path('user/<username>', views.user, name='user'),
path('user/<username>/next/<int:next>', views.user, name='user_next'),
path('user/<username>/prev/<int:prev>', views.user, name='user_prev'),
path('toot/<mention>', views.toot, name='toot'),
path('toot', views.toot, name="toot"),
path('reply/<int:id>', views.reply, name='reply'),