Hide statistics page for now
This commit is contained in:
parent
07381da8fb
commit
7115209b60
2 changed files with 2 additions and 5 deletions
|
@ -9,6 +9,7 @@ use Pterodactyl\Contracts\Repository\NodeRepositoryInterface;
|
||||||
use Pterodactyl\Contracts\Repository\UserRepositoryInterface;
|
use Pterodactyl\Contracts\Repository\UserRepositoryInterface;
|
||||||
use Pterodactyl\Contracts\Repository\ServerRepositoryInterface;
|
use Pterodactyl\Contracts\Repository\ServerRepositoryInterface;
|
||||||
use Pterodactyl\Contracts\Repository\DatabaseRepositoryInterface;
|
use Pterodactyl\Contracts\Repository\DatabaseRepositoryInterface;
|
||||||
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
use Pterodactyl\Contracts\Repository\AllocationRepositoryInterface;
|
use Pterodactyl\Contracts\Repository\AllocationRepositoryInterface;
|
||||||
|
|
||||||
class StatisticsController extends Controller
|
class StatisticsController extends Controller
|
||||||
|
@ -45,6 +46,7 @@ class StatisticsController extends Controller
|
||||||
|
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
|
throw new NotFoundHttpException;
|
||||||
$servers = $this->serverRepository->all();
|
$servers = $this->serverRepository->all();
|
||||||
$nodes = $this->nodeRepository->all();
|
$nodes = $this->nodeRepository->all();
|
||||||
$usersCount = $this->userRepository->count();
|
$usersCount = $this->userRepository->count();
|
||||||
|
|
|
@ -80,11 +80,6 @@
|
||||||
<i class="fa fa-home"></i> <span>Overview</span>
|
<i class="fa fa-home"></i> <span>Overview</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="{{ Route::currentRouteName() !== 'admin.statistics' ?: 'active' }}">
|
|
||||||
<a href="{{ route('admin.statistics') }}">
|
|
||||||
<i class="fa fa-tachometer"></i> <span>Statistics</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.settings') ?: 'active' }}">
|
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.settings') ?: 'active' }}">
|
||||||
<a href="{{ route('admin.settings')}}">
|
<a href="{{ route('admin.settings')}}">
|
||||||
<i class="fa fa-wrench"></i> <span>Settings</span>
|
<i class="fa fa-wrench"></i> <span>Settings</span>
|
||||||
|
|
Loading…
Reference in a new issue