mirror of
https://github.com/flarum/framework.git
synced 2025-03-02 07:41:12 +08:00

- Extracts translations from `reset.blade.php`. - Adjusts namespacing of translations in other files. - Fixes one direct reference to a `core.ref` key.
30 lines
981 B
PHP
30 lines
981 B
PHP
<?php
|
|
$discussion = $document->data;
|
|
$postsCount = count($discussion->relationships->posts->data);
|
|
?>
|
|
<div class="container">
|
|
<h2>{{ $discussion->attributes->title }}</h2>
|
|
|
|
<div>
|
|
@foreach ($posts as $post)
|
|
<div>
|
|
<?php $user = $getResource($post->relationships->user->data); ?>
|
|
<h3>{{ $user ? $user->attributes->username : $translator->trans('core.lib.deleted_user_text') }}</h3>
|
|
<div class="Post-body">
|
|
{!! $post->attributes->contentHtml !!}
|
|
</div>
|
|
</div>
|
|
|
|
<hr>
|
|
@endforeach
|
|
</div>
|
|
|
|
@if ($page > 1)
|
|
<a href="{{ $url(['page' => $page - 1]) }}">« {{ $translator->trans('core.views.discussion.previous_page_button') }}</a>
|
|
@endif
|
|
|
|
@if ($page < $postsCount / 20)
|
|
<a href="{{ $url(['page' => $page + 1]) }}">{{ $translator->trans('core.views.discussion.next_page_button') }} »</a>
|
|
@endif
|
|
</div>
|