Update templates
For post buttons.
This commit is contained in:
parent
3f8ca547c2
commit
de39d9e817
4 changed files with 28 additions and 24 deletions
|
@ -111,24 +111,27 @@
|
|||
@endif
|
||||
@if ($post->canDelete || $post->canEdit || $post->canQuote || $post->canBlock)
|
||||
<aside class="f-post-btns">
|
||||
<ul>
|
||||
<small>{!! __('ACTIONS') !!}</small>
|
||||
@if ($post->canBlock)
|
||||
<small>-</small>
|
||||
@if (2 === $p->model->blockStatus)
|
||||
<li class="f-postunblock"><a class="f-btn" title="{{ __('Unblock') }}" href="{{ $post->linkBlock }}"><span>{!! __('Unblock') !!}</span></a></li>
|
||||
<a class="f-btn f-postunblock" title="{{ __('Unblock') }}" href="{{ $post->linkBlock }}"><span>{!! __('Unblock') !!}</span></a>
|
||||
@else
|
||||
<li class="f-postblock"><a class="f-btn" title="{{ __('Block') }}" href="{{ $post->linkBlock }}"><span>{!! __('Block') !!}</span></a></li>
|
||||
<a class="f-btn f-postblock" title="{{ __('Block') }}" href="{{ $post->linkBlock }}"><span>{!! __('Block') !!}</span></a>
|
||||
@endif
|
||||
@endif
|
||||
@if ($post->canDelete)
|
||||
<li class="f-postdelete"><a class="f-btn" title="{{ __('Delete') }}" href="{{ $post->linkDelete }}"><span>{!! __('Delete') !!}</span></a></li>
|
||||
<small>-</small>
|
||||
<a class="f-btn f-postdelete" title="{{ __('Delete') }}" href="{{ $post->linkDelete }}"><span>{!! __('Delete') !!}</span></a>
|
||||
@endif
|
||||
@if ($post->canEdit)
|
||||
<li class="f-postedit"><a class="f-btn" title="{{ __('Edit') }}" href="{{ $post->linkEdit }}"><span>{!! __('Edit') !!}</span></a></li>
|
||||
<small>-</small>
|
||||
<a class="f-btn f-postedit" title="{{ __('Edit') }}" href="{{ $post->linkEdit }}"><span>{!! __('Edit') !!}</span></a>
|
||||
@endif
|
||||
@if ($post->canQuote)
|
||||
<li class="f-postquote"><a class="f-btn" title="{{ __('Quote') }}" href="{{ $post->linkQuote }}"><span>{!! __('Quote') !!}</span></a></li>
|
||||
<small>-</small>
|
||||
<a class="f-btn f-postquote" title="{{ __('Quote') }}" href="{{ $post->linkQuote }}"><span>{!! __('Quote') !!}</span></a>
|
||||
@endif
|
||||
</ul>
|
||||
</aside>
|
||||
@endif
|
||||
</div>
|
||||
|
|
|
@ -125,20 +125,23 @@
|
|||
@endif
|
||||
@if ($post->canReport || $post->canDelete || $post->canEdit || $post->canQuote)
|
||||
<aside class="f-post-btns">
|
||||
<ul>
|
||||
<small>{!! __('ACTIONS') !!}</small>
|
||||
@if ($post->canReport)
|
||||
<li class="f-postreport"><a class="f-btn f-minor" title="{{ __('Report') }}" href="{{ $post->linkReport }}"><span>{!! __('Report') !!}</span></a></li>
|
||||
<small>-</small>
|
||||
<a class="f-btn f-minor f-postreport" title="{{ __('Report') }}" href="{{ $post->linkReport }}"><span>{!! __('Report') !!}</span></a>
|
||||
@endif
|
||||
@if ($post->canDelete)
|
||||
<li class="f-postdelete"><a class="f-btn" title="{{ __('Delete') }}" href="{{ $post->linkDelete }}"><span>{!! __('Delete') !!}</span></a></li>
|
||||
<small>-</small>
|
||||
<a class="f-btn f-postdelete" title="{{ __('Delete') }}" href="{{ $post->linkDelete }}"><span>{!! __('Delete') !!}</span></a>
|
||||
@endif
|
||||
@if ($post->canEdit)
|
||||
<li class="f-postedit"><a class="f-btn" title="{{ __('Edit') }}" href="{{ $post->linkEdit }}"><span>{!! __('Edit') !!}</span></a></li>
|
||||
<small>-</small>
|
||||
<a class="f-btn f-postedit" title="{{ __('Edit') }}" href="{{ $post->linkEdit }}"><span>{!! __('Edit') !!}</span></a>
|
||||
@endif
|
||||
@if ($post->canQuote)
|
||||
<li class="f-postquote"><a class="f-btn" title="{{ __('Quote') }}" href="{{ $post->linkQuote }}"><span>{!! __('Quote') !!}</span></a></li>
|
||||
<small>-</small>
|
||||
<a class="f-btn f-postquote" title="{{ __('Quote') }}" href="{{ $post->linkQuote }}"><span>{!! __('Quote') !!}</span></a>
|
||||
@endif
|
||||
</ul>
|
||||
</aside>
|
||||
@endif
|
||||
</div>
|
||||
|
|
|
@ -78,10 +78,11 @@
|
|||
{!! $post->html() !!}
|
||||
</div>
|
||||
<aside class="f-post-btns">
|
||||
<ul>
|
||||
<li class="f-posttotopic"><a class="f-btn" href="{{ $post->parent->link }}">{!! __('Go to topic') !!}</a></li>
|
||||
<li class="f-posttopost"><a class="f-btn" href="{{ $post->link }}">{!! __('Go to post') !!}</a></li>
|
||||
</ul>
|
||||
<small>{!! __('ACTIONS') !!}</small>
|
||||
<small>-</small>
|
||||
<a class="f-btn f-posttotopic" href="{{ $post->parent->link }}">{!! __('Go to topic') !!}</a>
|
||||
<small>-</small>
|
||||
<a class="f-btn f-posttopost" href="{{ $post->link }}">{!! __('Go to post') !!}</a>
|
||||
</aside>
|
||||
</div>
|
||||
</article>
|
||||
|
|
|
@ -1532,6 +1532,10 @@ body,
|
|||
}
|
||||
|
||||
#fork .f-post-btns {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
gap: 0.3125rem;
|
||||
padding: 0.3125rem;
|
||||
}
|
||||
|
||||
|
@ -1539,13 +1543,6 @@ body,
|
|||
opacity: 0.4;
|
||||
}
|
||||
|
||||
#fork .f-post-btns ul {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
gap: 0.3125rem;
|
||||
}
|
||||
|
||||
/* #fork .f-post-footer-add {
|
||||
display: none;
|
||||
} */
|
||||
|
|
Loading…
Add table
Reference in a new issue