diff --git a/framework/core/views/frontend/content/discussion.blade.php b/framework/core/views/frontend/content/discussion.blade.php index 3a0aaa2e3..58a688ce8 100644 --- a/framework/core/views/frontend/content/discussion.blade.php +++ b/framework/core/views/frontend/content/discussion.blade.php @@ -1,9 +1,5 @@ -data; -$postsCount = count($discussion->relationships->posts->data); -?>
-

{{ $discussion->attributes->title }}

+

{{ $document->data->attributes->title }}

@foreach ($posts as $post) @@ -19,11 +15,11 @@ $postsCount = count($discussion->relationships->posts->data); @endforeach
- @if ($page > 1) + @if (isset($document->links->prev)) « {{ $translator->trans('core.views.discussion.previous_page_button') }} @endif - @if ($page < $postsCount / 20) + @if (isset($document->links->next)) {{ $translator->trans('core.views.discussion.next_page_button') }} » @endif