2018-01-11 03:36:50 +08:00
|
|
|
@inject('url', 'Flarum\Http\UrlGenerator')
|
|
|
|
|
2015-08-06 10:51:11 +08:00
|
|
|
<div class="container">
|
2016-04-07 16:45:58 +08:00
|
|
|
<h2>{{ $translator->trans('core.views.index.all_discussions_heading') }}</h2>
|
2015-08-06 10:51:11 +08:00
|
|
|
|
|
|
|
<ul>
|
2018-06-30 11:01:12 +08:00
|
|
|
@foreach ($apiDocument->data as $discussion)
|
2015-08-06 10:51:11 +08:00
|
|
|
<li>
|
2017-06-26 05:33:02 +08:00
|
|
|
<a href="{{ $url->to('forum')->route('discussion', [
|
2020-12-08 02:33:42 +08:00
|
|
|
'id' => $discussion->attributes->slug
|
2015-08-06 10:51:11 +08:00
|
|
|
]) }}">
|
|
|
|
{{ $discussion->attributes->title }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
|
2018-06-30 11:01:12 +08:00
|
|
|
@if (isset($apiDocument->links->prev))
|
2018-01-11 03:35:07 +08:00
|
|
|
<a href="{{ $url->to('forum')->route('index') }}?page={{ $page - 1 }}">« {{ $translator->trans('core.views.index.previous_page_button') }}</a>
|
|
|
|
@endif
|
|
|
|
|
2018-06-30 11:01:12 +08:00
|
|
|
@if (isset($apiDocument->links->next))
|
2018-01-11 03:34:25 +08:00
|
|
|
<a href="{{ $url->to('forum')->route('index') }}?page={{ $page + 1 }}">{{ $translator->trans('core.views.index.next_page_button') }} »</a>
|
|
|
|
@endif
|
2015-08-06 10:51:11 +08:00
|
|
|
</div>
|