Update templates

Replace the call of the "censorSubject" property with the call of the "name" property for the topic model.
This commit is contained in:
Visman 2021-03-29 18:27:31 +07:00
parent e626ab7ad9
commit 7734707297
3 changed files with 5 additions and 5 deletions

View file

@ -79,7 +79,7 @@
<div class="f-ficon"></div>
@endif
<div class="f-finfo">
<h3><span class="f-tmoved" title="{{ __('Moved') }}"><span class="f-movedtxt">{!! __('Moved') !!}</span></span> <a class="f-ftname" href="{{ $topic->link }}">{{ $topic->censorSubject }}</a></h3>
<h3><span class="f-tmoved" title="{{ __('Moved') }}"><span class="f-movedtxt">{!! __('Moved') !!}</span></span> <a class="f-ftname" href="{{ $topic->link }}">{{ $topic->name }}</a></h3>
</div>
</div>
</li>
@ -106,7 +106,7 @@
@if ($topic->poll_type > 0)
<span class="f-tpoll" title="{{ __('Poll') }}"><span class="f-polltxt">{!! __('Poll') !!}</span></span>
@endif
<a class="f-ftname" href="{{ $topic->link }}">{{ $topic->censorSubject }}</a>
<a class="f-ftname" href="{{ $topic->link }}">{{ $topic->name }}</a>
@if ($topic->pagination)
<span class="f-tpages">
@foreach ($topic->pagination as $cur)

View file

@ -40,7 +40,7 @@
@endif
</div>
<section class="f-main f-topic">
<h2>{{ $p->model->censorSubject }}</h2>
<h2>{{ $p->model->name }}</h2>
@foreach ($p->posts as $id => $post)
@if (empty($post->id) && $iswev = ['e' => [['Message %s was not found in the database', $id]]])
@include ('layouts/iswev')
@ -50,7 +50,7 @@
<input id="checkbox-{{ $post->id }}" class="f-post-checkbox" type="checkbox" name="ids[{{ $post->id }}]" value="{{ $post->id }}" form="id-form-mod">
@endif
<header class="f-post-header">
<h3>@if ($post->postNumber > 1) {!! __('Re') !!} @endif {{ $p->model->censorSubject }}</h3>
<h3>@if ($post->postNumber > 1) {!! __('Re') !!} @endif {{ $p->model->name }}</h3>
@if ($p->enableMod && $post->postNumber > 1)
<label class="f-post-posted" for="checkbox-{{ $post->id }}" title="{{ __('Select for moderation') }}"><time datetime="{{ \gmdate('c', $post->posted) }}">{{ dt($post->posted) }}</time></label>
@else

View file

@ -39,7 +39,7 @@
<header class="f-post-header">
<h3>
<span class="f-psh-forum"><a href="{{ $post->parent->parent->link }}" title="{{ __('Go to forum') }}">{{ $post->parent->parent->forum_name }}</a></span>
<span class="f-psh-topic"><a href="{{ $post->parent->link }}" title="{{ __('Go to topic') }}">@if ($post->id !== $post->parent->first_post_id) {!! __('Re') !!} @endif {{ $post->parent->censorSubject }}</a></span>
<span class="f-psh-topic"><a href="{{ $post->parent->link }}" title="{{ __('Go to topic') }}">@if ($post->id !== $post->parent->first_post_id) {!! __('Re') !!} @endif {{ $post->parent->name }}</a></span>
<span class="f-post-posted"><a href="{{ $post->link }}" title="{{ __('Go to post') }}" rel="bookmark"><time datetime="{{ \gmdate('c', $post->posted) }}">{{ dt($post->posted) }}</time></a></span>
</h3>
<span class="f-post-number">#{{ $post->postNumber }}</span>