2015-08-06 10:51:11 +08:00
|
|
|
<?php
|
2015-10-02 16:05:29 +08:00
|
|
|
$url = app('Flarum\Forum\UrlGenerator');
|
2015-08-06 10:51:11 +08:00
|
|
|
?>
|
|
|
|
<div class="container">
|
2015-10-21 09:06:49 +08:00
|
|
|
<h2>{{ $translator->trans('core.ref.all_discussions') }}</h2>
|
2015-08-06 10:51:11 +08:00
|
|
|
|
|
|
|
<ul>
|
|
|
|
@foreach ($document->data as $discussion)
|
|
|
|
<li>
|
2015-10-02 16:05:29 +08:00
|
|
|
<a href="{{ $url->toRoute('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>
|
|
|
|
|
2015-10-21 09:06:49 +08:00
|
|
|
<a href="{{ $url->toRoute('index') }}?page={{ $page + 1 }}">{{ $translator->trans('core.basic.next_page_button') }} »</a>
|
2015-08-06 10:51:11 +08:00
|
|
|
</div>
|