mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 04:33:47 +08:00
21 lines
599 B
PHP
21 lines
599 B
PHP
<?php
|
|
$url = app('Flarum\Http\UrlGeneratorInterface');
|
|
?>
|
|
<div class="container">
|
|
<h2>All Discussions</h2>
|
|
|
|
<ul>
|
|
@foreach ($document->data as $discussion)
|
|
<li>
|
|
<a href="{{ $url->toRoute('flarum.forum.discussion', [
|
|
'id' => $discussion->id . '-' . $discussion->attributes->title
|
|
]) }}">
|
|
{{ $discussion->attributes->title }}
|
|
</a>
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
|
|
<a href="{{ $url->toRoute('flarum.forum.index') }}?page={{ $page + 1 }}">Next Page »</a>
|
|
</div>
|