diff --git a/resources/views/account/moderation/post/cw.blade.php b/resources/views/account/moderation/post/cw.blade.php new file mode 100644 index 000000000..d1e1d3537 --- /dev/null +++ b/resources/views/account/moderation/post/cw.blade.php @@ -0,0 +1,130 @@ +@extends('layouts.blank') + +@section('content') + +
+
+
+

Your Post Contains Sensitive or Offensive Material

+

We applied a Content Warning to your post because it doesn't follow our Community Guidelines.

+

To continue you must click the "I Understand" button or "REQUEST APPEAL" button at the bottom of this page.

+
+
+
+
+
+

Post Details

+ @if($interstitial->has_media) +
+
+ @if($interstitial->blurhash) + + @else + No preview available + @endif +
+
+ @if($meta->caption) +

+ Caption: {{$meta->caption}} +

+ @endif +

+ Like Count: {{$meta->likes_count}} +

+

+ Share Count: {{$meta->reblogs_count}} +

+

+ Timestamp: {{now()->parse($meta->created_at)->format('r')}} +

+

+ URL: {{$meta->url}} +

+
+
+ @else +
+
+ @if($meta->caption) +

+ Comment: {{$meta->caption}} +

+ @endif +

+ Like Count: {{$meta->likes_count}} +

+

+ Share Count: {{$meta->reblogs_count}} +

+

+ Timestamp: {{now()->parse($meta->created_at)->format('r')}} +

+

+ URL: {{$meta->url}} +

+
+
+ @endif +
+
+
+

Review the Community Guidelines

+

We want to keep {{config('app.name')}} a safe place for everyone, and we created these Community Guidelines to support and protect our community.

+
+
+ +
+ +
+
+
+ @csrf +

Request Appeal

+

+

+ +
+

+ {{--

Learn more about what we remove.

--}} + + + + +
+
+ +
+ +
+ @csrf + + + + + +
+
+
+
+ +@endsection + +@push('scripts') + +@if($interstitial->blurhash) + +@endif +@endpush \ No newline at end of file diff --git a/resources/views/account/moderation/post/removed.blade.php b/resources/views/account/moderation/post/removed.blade.php new file mode 100644 index 000000000..123863489 --- /dev/null +++ b/resources/views/account/moderation/post/removed.blade.php @@ -0,0 +1,99 @@ +@extends('layouts.blank') + +@section('content') + +
+
+
+

Your Post Has Been Deleted

+

We removed your post because it doesn't follow our Community Guidelines. If you violate our guidelines again, your account may be restricted or disabled.

+

To continue you must click the "I Understand" button at the bottom of this page.

+
+
+
+
+
+

Post Details

+ @if($interstitial->has_media) +
+
+ @if($interstitial->blurhash) + + @else + No preview available + @endif +
+
+ @if($meta->caption) +

+ Caption: {{$meta->caption}} +

+ @endif +

+ Like Count: {{$meta->likes_count}} +

+

+ Share Count: {{$meta->reblogs_count}} +

+

+ Timestamp: {{now()->parse($meta->created_at)->format('r')}} +

+

+ URL: {{$meta->url}} +

+
+
+ @else +
+
+

+ Comment: {{$meta->caption}} +

+

+ Posted on {{$meta->created_at}} +

+

+ {{$meta->url}} +

+
+
+ @endif +
+
+
+

Review the Community Guidelines

+

We want to keep {{config('app.name')}} a safe place for everyone, and we created these Community Guidelines to support and protect our community.

+
+
+
+
+ @csrf + + + + + +
+
+
+
+@endsection + +@push('scripts') + +@if($interstitial->blurhash) + +@endif +@endpush \ No newline at end of file diff --git a/resources/views/account/moderation/post/unlist.blade.php b/resources/views/account/moderation/post/unlist.blade.php new file mode 100644 index 000000000..3c86acb76 --- /dev/null +++ b/resources/views/account/moderation/post/unlist.blade.php @@ -0,0 +1,128 @@ +@extends('layouts.blank') + +@section('content') + +
+
+
+

Your Post Was Unlisted

+

We removed your post from public timelines because it doesn't follow our Community Guidelines.

+
+
+
+
+
+

Post Details

+ @if($interstitial->has_media) +
+
+ @if($interstitial->blurhash) + + @else + No preview available + @endif +
+
+ @if($meta->caption) +

+ Caption: {{$meta->caption}} +

+ @endif +

+ Like Count: {{$meta->likes_count}} +

+

+ Share Count: {{$meta->reblogs_count}} +

+

+ Timestamp: {{now()->parse($meta->created_at)->format('r')}} +

+

+ URL: {{$meta->url}} +

+
+
+ @else +
+
+ @if($meta->caption) +

+ Comment: {{$meta->caption}} +

+ @endif +

+ Like Count: {{$meta->likes_count}} +

+

+ Share Count: {{$meta->reblogs_count}} +

+

+ Timestamp: {{now()->parse($meta->created_at)->format('r')}} +

+

+ URL: {{$meta->url}} +

+
+
+ @endif +
+
+
+

Review the Community Guidelines

+

We want to keep {{config('app.name')}} a safe place for everyone, and we created these Community Guidelines to support and protect our community.

+
+
+ +
+ +
+
+
+ @csrf + +

Request Appeal

+

+

+ +
+

+ + + + +
+
+ +
+
+ @csrf + + + + + +
+
+
+
+ +@endsection + +@push('scripts') + +@if($interstitial->blurhash) + +@endif +@endpush \ No newline at end of file diff --git a/resources/views/admin/reports/appeals.blade.php b/resources/views/admin/reports/appeals.blade.php new file mode 100644 index 000000000..5e2c21f7e --- /dev/null +++ b/resources/views/admin/reports/appeals.blade.php @@ -0,0 +1,63 @@ +@extends('admin.partial.template-full') + +@section('section') +
+

Appeals

+ + +
+
+
+
+
+

{{App\AccountInterstitial::whereNull('appeal_handled_at')->whereNotNull('appeal_requested_at')->count()}}

+

active appeals

+
+
+ +
+
+

{{App\AccountInterstitial::whereNotNull('appeal_handled_at')->whereNotNull('appeal_requested_at')->count()}}

+

closed appeals

+
+
+
+
+ +

{!!$appeals->render()!!}

+
+
+ +@endsection \ No newline at end of file diff --git a/resources/views/admin/reports/home.blade.php b/resources/views/admin/reports/home.blade.php index 001c282e3..d78924e5b 100644 --- a/resources/views/admin/reports/home.blade.php +++ b/resources/views/admin/reports/home.blade.php @@ -15,6 +15,15 @@ +@php($ai = App\AccountInterstitial::whereNotNull('appeal_requested_at')->whereNull('appeal_handled_at')->count()) +@if($ai) +
+ +

{{$ai}}

+ Appeal {{$ai == 1 ? 'Request' : 'Requests'}} +
+
+@endif @if($reports->count())
diff --git a/resources/views/admin/reports/show_appeal.blade.php b/resources/views/admin/reports/show_appeal.blade.php new file mode 100644 index 000000000..2839dbfa5 --- /dev/null +++ b/resources/views/admin/reports/show_appeal.blade.php @@ -0,0 +1,125 @@ +@extends('admin.partial.template-full') + +@section('section') +
+
+

Moderation Appeal

+

From @{{$appeal->user->username}} about {{$appeal->appeal_requested_at->diffForHumans()}}.

+
+
+
+
+
+
+ @if($appeal->type == 'post.cw') +
+
Content Warning applied to {{$appeal->has_media ? 'Post' : 'Comment'}}
+ @if($appeal->has_media) + + @endif +
+
+ @if($meta->caption) +

+ {{$appeal->has_media ? 'Caption' : 'Comment'}}: {{$meta->caption}} +

+ @endif +

+ Like Count: {{$meta->likes_count}} +

+

+ Share Count: {{$meta->reblogs_count}} +

+

+ Timestamp: {{now()->parse($meta->created_at)->format('r')}} +

+

+ URL: {{$meta->url}} +

+

+ Message: {{$appeal->appeal_message}} +

+
+
+
+ @elseif($appeal->type == 'post.unlist') +
+
{{$appeal->has_media ? 'Post' : 'Comment'}} was unlisted from timelines
+ @if($appeal->has_media) + + @endif +
+
+ @if($meta->caption) +

+ {{$appeal->has_media ? 'Caption' : 'Comment'}}: {{$meta->caption}} +

+ @endif +

+ Like Count: {{$meta->likes_count}} +

+

+ Share Count: {{$meta->reblogs_count}} +

+

+ Timestamp: {{now()->parse($meta->created_at)->format('r')}} +

+

+ URL: {{$meta->url}} +

+

+ Message: {{$appeal->appeal_message}} +

+
+
+
+ @endif +
+
+
+ @csrf + + +
+ +
+
+ @{{$appeal->user->username}} stats +
+
+

+ Open Appeals: {{App\AccountInterstitial::whereUserId($appeal->user_id)->whereNotNull('appeal_requested_at')->whereNull('appeal_handled_at')->count()}} +

+

+ Total Appeals: {{App\AccountInterstitial::whereUserId($appeal->user_id)->whereNotNull('appeal_requested_at')->count()}} +

+

+ Total Warnings: {{App\AccountInterstitial::whereUserId($appeal->user_id)->count()}} +

+

+ Status Count: {{$appeal->user->statuses()->count()}} +

+

+ Joined: {{$appeal->user->created_at->diffForHumans(null, null, false)}} +

+
+
+
+
+@endsection + +@push('scripts') + +@endpush \ No newline at end of file