1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 16:36:47 +02:00

Build very rough HTML-only content

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...
This commit is contained in:
Toby Zerner
2015-08-06 12:21:11 +09:30
parent bb89ef276f
commit 6f4d7a36b6
9 changed files with 128 additions and 42 deletions

View File

@@ -1 +1,21 @@
index SEO content
<?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 &raquo;</a>
</div>