mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 01:36:53 +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>
|