mirror of
https://github.com/flarum/framework.git
synced 2025-02-13 17:03:15 +08:00
![David Wheatley](/assets/img/avatar_default.png)
* chore: remove comment * chore: use `@php` in blade templates * chore: use `@php` in blade templates
26 lines
939 B
PHP
26 lines
939 B
PHP
<div class="container">
|
|
<h2>{{ $apiDocument->data->attributes->title }}</h2>
|
|
|
|
<div>
|
|
@foreach ($posts as $post)
|
|
<div>
|
|
@php $user = ! empty($post->relationships->user->data) ? $getResource($post->relationships->user->data) : null; @endphp
|
|
<h3>{{ $user ? $user->attributes->displayName : $translator->trans('core.lib.username.deleted_text') }}</h3>
|
|
<div class="Post-body">
|
|
{!! $post->attributes->contentHtml !!}
|
|
</div>
|
|
</div>
|
|
|
|
<hr>
|
|
@endforeach
|
|
</div>
|
|
|
|
@if ($hasPrevPage)
|
|
<a href="{{ $url(['page' => $page - 1]) }}">« {{ $translator->trans('core.views.discussion.previous_page_button') }}</a>
|
|
@endif
|
|
|
|
@if ($hasNextPage)
|
|
<a href="{{ $url(['page' => $page + 1]) }}">{{ $translator->trans('core.views.discussion.next_page_button') }} »</a>
|
|
@endif
|
|
</div>
|