diff --git a/resources/views/admin/users/activity.blade.php b/resources/views/admin/users/activity.blade.php new file mode 100644 index 000000000..7634188ec --- /dev/null +++ b/resources/views/admin/users/activity.blade.php @@ -0,0 +1,84 @@ +@extends('admin.partial.template-full') + +@section('section') +
+ Back + +

@{{$profile->username}}

+

+ {{$profile->statuses()->count()}} Posts + | + {{$profile->followers()->count()}} Followers + | + {{$profile->following()->count()}} Following +

+
+ + + +
+
+ +
+
+

Recent Activity

+
+
+
+ @if($logs->count() > 0) +
+ @foreach($logs as $log) +
+
+

{{$log->created_at->diffForHumans()}}

+

{{$log->message}}

+

+ IP: {{$log->ip_address}} +

+
+
+ +
+
+ @endforeach +
+
+ {{$logs->links()}} +
+ @else +
+ No Activity found +
+ @endif +
+
+
+
+@endsection \ No newline at end of file diff --git a/resources/views/admin/users/delete.blade.php b/resources/views/admin/users/delete.blade.php new file mode 100644 index 000000000..76762fa4e --- /dev/null +++ b/resources/views/admin/users/delete.blade.php @@ -0,0 +1,60 @@ +@extends('admin.partial.template-full') + +@section('section') +
+ Back + +

@{{$profile->username}}

+

+ {{$profile->statuses()->count()}} Posts + | + {{$profile->followers()->count()}} Followers + | + {{$profile->following()->count()}} Following +

+
+ + + +
+
+
+
+
+

Are you sure you want to delete this account?

+

+

+ @csrf + +
+

+
+
+
+@endsection \ No newline at end of file diff --git a/resources/views/admin/users/edit.blade.php b/resources/views/admin/users/edit.blade.php index 29148e9db..2c784ccbb 100644 --- a/resources/views/admin/users/edit.blade.php +++ b/resources/views/admin/users/edit.blade.php @@ -1,101 +1,100 @@ -@extends('admin.partial.template') +@extends('admin.partial.template-full') @section('section') -
-

Edit User

- Back -
-
+
+ Back + +

@{{$profile->username}}

+

+ {{$profile->statuses()->count()}} Posts + | + {{$profile->followers()->count()}} Followers + | + {{$profile->following()->count()}} Following +

+
+ + + +
+
-
-
-
-
-

{{$profile->statusCount()}}

-

Posts

-
-
-
-
-
-
-

{{$profile->likes()->count()}}

-

Likes

-
-
-
-
-
-
-

{{$profile->reports()->count()}}

-

Reports

-
-
-
-
-
-
-

{{PrettyNumber::size($profile->media()->sum('size'))}}

-

Storage Used

-
-
-
-
+
+

Edit

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

+ @if($user->email_verified_at) + Verified for {{$user->email_verified_at->diffForHumans()}} + @else + Unverified email. + @endif +

+
+
+ + +
+
+ + +
+
+ +
+ is_admin ? 'checked="checked"' : ''}}> + +
+

For security reasons, you cannot change admin status on this form. Use the CLI instead.

+
+
+

+ +

+
+
+
+
-
-
-
-
- -
- -
-
-
-
-
-
-

- {{$profile->username}} -

-

- {{$profile->emailUrl()}} -

-

- Member Since: {{$profile->created_at->format('M Y')}} -

-
-
-
-
-
-
-
-
- Account Settings -
-
-
- - -
-
- - -
-
- - -

- @if($user->email_verified_at) - Verified for {{$user->email_verified_at->diffForHumans()}} - @else - Unverified email. - @endif -

-
-
-
@endsection \ No newline at end of file diff --git a/resources/views/admin/users/home.blade.php b/resources/views/admin/users/home.blade.php index 8bec6c62e..70fb7df7d 100644 --- a/resources/views/admin/users/home.blade.php +++ b/resources/views/admin/users/home.blade.php @@ -2,141 +2,112 @@ @section('header')
-
-
-
+
+
test
+
@endsection @section('section') -
-

Users

-
-
-
- - - - - - - - - - - - @foreach($users as $user) - - - - - - + + @endif + @endforeach + +
- ID - - Username - - Statuses - - Storage - - Actions -
- {{$user->id}} - - - - {{$user->username}} - @if($user->is_admin) - - @endif - - - {{$user->profile ? $user->profile->statusCount() : 0}} - -

-
- - - View - +
+

Users

+
+
+
+ + + + + + + + + + @foreach($users as $user) + @if($user->status == 'deleted') + + + + + + @else + + + + - - @endforeach - -
+ ID + + Username + + Actions +
+ {{$user->id}} + + + + {{$user->username}} + + + + Account Deleted + +
+ {{$user->id}} + + + + {{$user->username}} + @if($user->is_admin) + + @endif + + + + + Profile + - - Edit - + + Review + - - Delete - - -
-
-
- {{$users->links()}} -
+ + Mod Logs + +
+
+
+
+ {{$users->links()}} +
@endsection @push('styles') @endpush @push('scripts') - + @endpush diff --git a/resources/views/admin/users/message.blade.php b/resources/views/admin/users/message.blade.php new file mode 100644 index 000000000..b13321a64 --- /dev/null +++ b/resources/views/admin/users/message.blade.php @@ -0,0 +1,112 @@ +@extends('admin.partial.template-full') + +@section('section') +
+ Back + +

@{{$profile->username}}

+

+ {{$profile->statuses()->count()}} Posts + | + {{$profile->followers()->count()}} Followers + | + {{$profile->following()->count()}} Following +

+
+ + + +
+
+ +
+
+

Send Message

+
+
+
+ @if ($errors->any()) +
+
    + @foreach ($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif +
+ @csrf +
+ +

+ Plain text only, html will not be rendered. + 0/500 +

+
+

+ +

+
+
+
+
+
+@endsection + +@push('scripts') + +@endpush \ No newline at end of file diff --git a/resources/views/admin/users/modlogs.blade.php b/resources/views/admin/users/modlogs.blade.php new file mode 100644 index 000000000..adbdadd82 --- /dev/null +++ b/resources/views/admin/users/modlogs.blade.php @@ -0,0 +1,143 @@ +@extends('admin.partial.template-full') + +@section('section') +
+ Back + +

@{{$profile->username}}

+

+ {{$profile->statuses()->count()}} Posts + | + {{$profile->followers()->count()}} Followers + | + {{$profile->following()->count()}} Following +

+
+ + + +
+
+ +
+
+

Moderation Logs

+
+
+
+
+
+ @csrf +
+ + @if ($errors->any()) + @foreach ($errors->all() as $error) +

+ {{ $error }} +

+ @endforeach + @endif +
+
+ + 0/500 + + + + +
+
+
+ @if($logs->count() > 0) +
+ @foreach($logs as $log) +
+ @if($log->message != null) +
+
+ +
+
+ @if($log->user_id != Auth::id()) +
+

{{$log->message}}

+
+ @else +
+

{{$log->message}}

+
+ @endif +
+ + @{{$log->user_username}} + + + {{$log->created_at->diffForHumans()}} + +
+
+
+ @else +
+

{{$log->created_at->diffForHumans()}}

+

{{$log->actionToText()}}

+

+ by: {{$log->user_username}} +

+
+
+ +
+ @endif +
+ @endforeach +
+
+ {{$logs->links()}} +
+ @else +
+ No Activity found +
+ @endif +
+
+
+
+@endsection + +@push('scripts') + +@endpush \ No newline at end of file diff --git a/resources/views/admin/users/modtools.blade.php b/resources/views/admin/users/modtools.blade.php new file mode 100644 index 000000000..befa3e38c --- /dev/null +++ b/resources/views/admin/users/modtools.blade.php @@ -0,0 +1,107 @@ +@extends('admin.partial.template-full') + +@section('section') +
+ Back + +

@{{$profile->username}}

+

+ {{$profile->statuses()->count()}} Posts + | + {{$profile->followers()->count()}} Followers + | + {{$profile->following()->count()}} Following +

+
+ + + +
+
+ +
+
+

Mod Tools

+
+
+
+
+ @csrf + + +

Adds a CW to every post made by this account.

+
+
+
+
+ @csrf + + +

Removes account from public/network timelines.

+
+
+
+
+ @csrf + + +

Do not transform mentions, hashtags or urls into HTML.

+
+
+
+
+ @csrf + + +

Temporarily disable account until next time user log in.

+
+
+ +
+
+ @csrf + + +

This prevents any new interactions, without deleting existing data.

+
+
+ +
+
+ @csrf + + +

This disables the account and changes the password, forcing account to reset password via verified email.

+
+
+
+
+
+@endsection \ No newline at end of file diff --git a/resources/views/admin/users/show.blade.php b/resources/views/admin/users/show.blade.php new file mode 100644 index 000000000..5a5b44b25 --- /dev/null +++ b/resources/views/admin/users/show.blade.php @@ -0,0 +1,121 @@ +@extends('admin.partial.template-full') + +@section('section') +
+ Back + +

@{{$profile->username}}

+

+ {{$profile->statuses()->count()}} Posts + | + {{$profile->followers()->count()}} Followers + | + {{$profile->following()->count()}} Following +

+
+ + +
+
+ +
+
+
+
+ +

+ {{$profile->name}} +

+ @if($user->is_admin == true) +

+ ADMIN +

+ @endif +

+ Joined {{$profile->created_at->diffForHumans()}} +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bookmarks{{$profile->bookmarks()->count()}}
collections{{$profile->collections()->count()}}
likes{{$profile->likes()->count()}}
reports{{$profile->reports()->count()}}
reported{{$profile->reported()->count()}}
Active stories{{$profile->stories()->count()}}
storage used{{PrettyNumber::size($profile->media()->sum('size'))}} / {{PrettyNumber::size(config('pixelfed.max_account_size') * 1000)}}
+
+
+
+

Recent Posts

+
+
+ @foreach($profile->statuses()->whereHas('media')->latest()->take(9)->get() as $item) +
+ + + +
+ @endforeach + + @if($profile->statuses()->whereHas('media')->count() == 0) +
+
+

No statuses found

+
+
+ @endif +
+
+
+ @endsection \ No newline at end of file