mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 02:27:08 +08:00
fc7db914db
app('view') call to set translator is temporary. See #189
21 lines
648 B
PHP
21 lines
648 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->title
|
|
]) }}">
|
|
{{ $discussion->attributes->title }}
|
|
</a>
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
|
|
<a href="{{ $url->toRoute('index') }}?page={{ $page + 1 }}">{{ $translator->trans('core.basic.next_page_button') }} »</a>
|
|
</div>
|