mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 20:16:08 +08:00
fa5c7cb123
And redirect to the "no JS" mode if the JS app crashes on boot. ClientView/ClientAction is all a bit of a mess and will need to be radically cleaned up at some point...
22 lines
622 B
PHP
22 lines
622 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,
|
|
'slug' => $discussion->attributes->title
|
|
]) }}">
|
|
{{ $discussion->attributes->title }}
|
|
</a>
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
|
|
<a href="{{ $url->toRoute('flarum.forum.index') }}?page={{ $page + 1 }}">Next Page »</a>
|
|
</div>
|