mirror of
https://github.com/flarum/framework.git
synced 2024-12-18 19:15:56 +08:00
9ecb5f437a
Fixes #646.
21 lines
647 B
PHP
21 lines
647 B
PHP
<?php
|
|
$url = app('Flarum\Forum\UrlGenerator');
|
|
?>
|
|
<div class="container">
|
|
<h2>{{ $translator->trans('core.ref.all_discussions') }}</h2>
|
|
|
|
<ul>
|
|
@foreach ($document->data as $discussion)
|
|
<li>
|
|
<a href="{{ $url->toRoute('discussion', [
|
|
'id' => $discussion->id . '-' . $discussion->attributes->slug
|
|
]) }}">
|
|
{{ $discussion->attributes->title }}
|
|
</a>
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
|
|
<a href="{{ $url->toRoute('index') }}?page={{ $page + 1 }}">{{ $translator->trans('core.basic.next_page_button') }} »</a>
|
|
</div>
|