mirror of https://gitlab.com/brutaldon/brutaldon
Fix paths for user paging
This commit is contained in:
parent
dfd1db618d
commit
66c351f9e3
|
@ -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>
|
||||
|
||||
|
|
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue