mirror of
https://github.com/flarum/framework.git
synced 2025-02-17 02:02:47 +08:00
Add pagination link for previous page
This commit is contained in:
parent
6913e8f0f8
commit
8c470954eb
|
@ -16,6 +16,10 @@ $url = app('Flarum\Http\UrlGenerator');
|
|||
@endforeach
|
||||
</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))
|
||||
<a href="{{ $url->to('forum')->route('index') }}?page={{ $page + 1 }}">{{ $translator->trans('core.views.index.next_page_button') }} »</a>
|
||||
@endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user