From 0edb4f9c509887018fe0c431e13eb5afd8175395 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 23 Sep 2018 16:40:52 -0600 Subject: [PATCH] Update admin home view, fixes #483 --- resources/views/admin/home.blade.php | 37 ++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/resources/views/admin/home.blade.php b/resources/views/admin/home.blade.php index e96459040..5cc59d605 100644 --- a/resources/views/admin/home.blade.php +++ b/resources/views/admin/home.blade.php @@ -24,8 +24,8 @@
-

{{App\Util\Lexer\PrettyNumber::convert(App\Status::whereLocal(true)->count())}}

-

Local Statuses

+

{{App\Util\Lexer\PrettyNumber::convert(DB::table('failed_jobs')->where('failed_at', '>=', \Carbon\Carbon::now()->subDay())->count())}}

+

Failed Jobs (24h)

@@ -33,8 +33,36 @@
-

{{App\Util\Lexer\PrettyNumber::convert(App\Status::count())}}

-

All Statuses

+

{{App\Util\Lexer\PrettyNumber::convert(App\Report::whereNull('admin_seen')->count())}}

+

Reports

+
+
+
+ + +
+
+
+
+

{{App\Util\Lexer\PrettyNumber::convert(App\Status::whereNull('in_reply_to_id')->whereNull('reblog_of_id')->count())}}

+

Statuses

+
+
+
+ +
+
+
+

{{App\Util\Lexer\PrettyNumber::convert(App\Status::whereNotNull('in_reply_to_id')->count())}}

+

Replies

+
+
+
+
+
+
+

{{App\Util\Lexer\PrettyNumber::convert(App\Status::whereNotNull('reblog_of_id')->count())}}

+

Shares (Reblogs)

@@ -87,7 +115,6 @@
- @php($filesum = filesize(storage_path('app/public/m/')))