2015-08-06 10:51:11 +08:00
|
|
|
<?php
|
2017-06-26 05:33:02 +08:00
|
|
|
$url = app('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>
|
|
|
|
@foreach ($document->data as $discussion)
|
|
|
|
<li>
|
2017-06-26 05:33:02 +08:00
|
|
|
<a href="{{ $url->to('forum')->route('discussion', [
|
2016-02-04 18:47:03 +08:00
|
|
|
'id' => $discussion->id . '-' . $discussion->attributes->slug
|
2015-08-06 10:51:11 +08:00
|
|
|
]) }}">
|
|
|
|
{{ $discussion->attributes->title }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
|
2018-01-11 03:34:25 +08:00
|
|
|
@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
|
2015-08-06 10:51:11 +08:00
|
|
|
</div>
|