forked from mirror/pixelfed
Update reports view
This commit is contained in:
parent
0118f2c685
commit
a70ab1ba36
1 changed files with 11 additions and 9 deletions
|
@ -18,15 +18,17 @@
|
||||||
@php($ai = App\AccountInterstitial::whereNotNull('appeal_requested_at')->whereNull('appeal_handled_at')->count())
|
@php($ai = App\AccountInterstitial::whereNotNull('appeal_requested_at')->whereNull('appeal_handled_at')->count())
|
||||||
@php($spam = App\AccountInterstitial::whereType('post.autospam')->whereNull('appeal_handled_at')->count())
|
@php($spam = App\AccountInterstitial::whereType('post.autospam')->whereNull('appeal_handled_at')->count())
|
||||||
@if($ai || $spam)
|
@if($ai || $spam)
|
||||||
<div class="mb-4">
|
<div class="col-12 col-md-8 offset-md-2">
|
||||||
<a class="btn btn-outline-primary px-5 py-3 mr-3" href="/i/admin/reports/appeals">
|
<div class="mb-4">
|
||||||
<p class="font-weight-bold h4 mb-0">{{$ai}}</p>
|
<a class="btn btn-outline-primary px-5 py-3 mr-3" href="/i/admin/reports/appeals">
|
||||||
Appeal {{$ai == 1 ? 'Request' : 'Requests'}}
|
<p class="font-weight-bold h4 mb-0">{{$ai}}</p>
|
||||||
</a>
|
Appeal {{$ai == 1 ? 'Request' : 'Requests'}}
|
||||||
<a class="btn btn-outline-primary px-5 py-3" href="/i/admin/reports/autospam">
|
</a>
|
||||||
<p class="font-weight-bold h4 mb-0">{{$spam}}</p>
|
<a class="btn btn-outline-primary px-5 py-3" href="/i/admin/reports/autospam">
|
||||||
Flagged {{$ai == 1 ? 'Post' : 'Posts'}}
|
<p class="font-weight-bold h4 mb-0">{{$spam}}</p>
|
||||||
</a>
|
Flagged {{$ai == 1 ? 'Post' : 'Posts'}}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@if($reports->count())
|
@if($reports->count())
|
||||||
|
|
Loading…
Reference in a new issue