theme support for downloads page

This commit is contained in:
Thomas G 2022-08-08 04:46:43 +10:00
parent 585826f0bb
commit 26bf4ae038
2 changed files with 18 additions and 2 deletions

View File

@ -8,4 +8,4 @@
<h5>Administration Area</h5><br>
<p><strong>{{ App\Models\User::count() }}</strong> users registered, <strong>{{ App\Models\User::where('admin', true)->count() }}</strong> total admins, <strong>{{ App\Models\User::where('last_seen', '>', Carbon\Carbon::now()->subDay()->toDateTimeString())->count(); }}</strong> users online in the past 24 hours.</p><br>
<p><strong>{{ App\Models\InviteKey::count() }}</strong> invite keys exist, <strong>{{ App\Models\InviteKey::where('active', true)->count() }}</strong> keys haven't been used yet.</p>
@endsection
@endsection

View File

@ -16,7 +16,23 @@
<link rel="apple-touch-startup-image" href="{{ asset('img/MORBLOXsplash.png') }}" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}">
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
@auth
@switch (Auth::user()->settings->theme)
@case(3)
<link href="{{ asset('css/app.css?id=' . Str::random(8)) }}" rel="stylesheet">
<link href="{{ asset('css/appdark.css?id=' . Str::random(8)) }}" rel="stylesheet">
@break
@case(2)
<link href="{{ asset('css/app.css?id=' . Str::random(8)) }}" rel="stylesheet">
<link href="{{ asset('css/2018.css?id=' . Str::random(8)) }}" rel="stylesheet">
@break
@default
<link href="{{ asset('css/app.css?id=' . Str::random(8)) }}" rel="stylesheet">
@endswitch
@else
<link href="{{ asset('css/app.css?id=' . Str::random(8)) }}" rel="stylesheet">
@endauth
</head>
<body>
<br>