mirror of
https://github.com/flarum/core.git
synced 2025-07-19 15:51:16 +02:00
Add pagination link for previous page
This commit is contained in:
@@ -16,6 +16,10 @@ $url = app('Flarum\Http\UrlGenerator');
|
|||||||
@endforeach
|
@endforeach
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
@if (isset($document->links->prev))
|
||||||
|
<a href="{{ $url->to('forum')->route('index') }}?page={{ $page - 1 }}">« {{ $translator->trans('core.views.index.previous_page_button') }}</a>
|
||||||
|
@endif
|
||||||
|
|
||||||
@if (isset($document->links->next))
|
@if (isset($document->links->next))
|
||||||
<a href="{{ $url->to('forum')->route('index') }}?page={{ $page + 1 }}">{{ $translator->trans('core.views.index.next_page_button') }} »</a>
|
<a href="{{ $url->to('forum')->route('index') }}?page={{ $page + 1 }}">{{ $translator->trans('core.views.index.next_page_button') }} »</a>
|
||||||
@endif
|
@endif
|
||||||
|
Reference in New Issue
Block a user