mirror of
https://github.com/flarum/core.git
synced 2025-08-28 02:20:14 +02:00
Translate basic HTML views
app('view') call to set translator is temporary. See #189
This commit is contained in:
@@ -9,7 +9,7 @@ $postsCount = count($discussion->relationships->posts->data);
|
||||
@foreach ($posts as $post)
|
||||
<div>
|
||||
<?php $user = $getResource($post->relationships->user->data); ?>
|
||||
<h3>{{ $user ? $user->attributes->username : '[deleted]' }}</h3>
|
||||
<h3>{{ $user ? $user->attributes->username : $translator->trans('core.lib.deleted_user_text') }}</h3>
|
||||
<div class="Post-body">
|
||||
{!! $post->attributes->contentHtml !!}
|
||||
</div>
|
||||
@@ -20,10 +20,10 @@ $postsCount = count($discussion->relationships->posts->data);
|
||||
</div>
|
||||
|
||||
@if ($page > 1)
|
||||
<a href="{{ $url(['page' => $page - 1]) }}">« Previous Page</a>
|
||||
<a href="{{ $url(['page' => $page - 1]) }}">« {{ $translator->trans('core.basic.previous_page_button') }}</a>
|
||||
@endif
|
||||
|
||||
@if ($page < $postsCount / 20)
|
||||
<a href="{{ $url(['page' => $page + 1]) }}">Next Page »</a>
|
||||
<a href="{{ $url(['page' => $page + 1]) }}">{{ $translator->trans('core.basic.next_page_button') }} »</a>
|
||||
@endif
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user