mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 06:03:39 +08:00
21 lines
690 B
PHP
21 lines
690 B
PHP
<?php
|
|
$url = app('Flarum\Http\UrlGenerator');
|
|
?>
|
|
<div class="container">
|
|
<h2>{{ $translator->trans('core.views.index.all_discussions_heading') }}</h2>
|
|
|
|
<ul>
|
|
@foreach ($document->data as $discussion)
|
|
<li>
|
|
<a href="{{ $url->to('forum')->route('discussion', [
|
|
'id' => $discussion->id . '-' . $discussion->attributes->slug
|
|
]) }}">
|
|
{{ $discussion->attributes->title }}
|
|
</a>
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
|
|
<a href="{{ $url->to('forum')->route('index') }}?page={{ $page + 1 }}">{{ $translator->trans('core.views.index.next_page_button') }} »</a>
|
|
</div>
|