mirror of
https://gitlab.com/brutaldon/brutaldon.git
synced 2024-11-02 16:37:19 -04:00
Fix paths for user paging
This commit is contained in:
parent
dfd1db618d
commit
66c351f9e3
@ -102,10 +102,10 @@ Brutaldon - {{ user.acct }} timelime
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
|
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
|
||||||
{% if prev %}
|
{% 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 %}
|
{% endif %}
|
||||||
{% if next %}
|
{% 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 %}
|
{% endif %}
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
@ -42,6 +42,8 @@ urlpatterns = [
|
|||||||
path('thread/<int:id>', views.thread, name='thread'),
|
path('thread/<int:id>', views.thread, name='thread'),
|
||||||
path('tags/<tag>', views.tag, name='tag'),
|
path('tags/<tag>', views.tag, name='tag'),
|
||||||
path('user/<username>', views.user, name='user'),
|
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/<mention>', views.toot, name='toot'),
|
||||||
path('toot', views.toot, name="toot"),
|
path('toot', views.toot, name="toot"),
|
||||||
path('reply/<int:id>', views.reply, name='reply'),
|
path('reply/<int:id>', views.reply, name='reply'),
|
||||||
|
Loading…
Reference in New Issue
Block a user