Fix indentation on PlaceholderService and make sure user has ran the installation script before using Blueprint.
This commit is contained in:
parent
9591ea1149
commit
1aec415db4
2 changed files with 31 additions and 25 deletions
|
@ -5,23 +5,21 @@ use Pterodactyl\Contracts\Repository\SettingsRepositoryInterface;
|
|||
|
||||
class BlueprintPlaceholderService
|
||||
{
|
||||
// Construct BlueprintPlaceholderService
|
||||
public function __construct(
|
||||
private SettingsRepositoryInterface $settings,
|
||||
) {
|
||||
}
|
||||
// Construct BlueprintPlaceholderService
|
||||
public function __construct(
|
||||
private SettingsRepositoryInterface $settings,
|
||||
) {
|
||||
}
|
||||
|
||||
// $bp->version()
|
||||
public
|
||||
function version(): string {
|
||||
$v = "&bp.version&";
|
||||
return $v;
|
||||
}
|
||||
// version()
|
||||
public function version(): string {
|
||||
$v = "&bp.version&";
|
||||
return $v;
|
||||
}
|
||||
|
||||
// $bp->folder()
|
||||
public
|
||||
function folder(): string {
|
||||
$v = "&bp.folder&";
|
||||
return $v;
|
||||
}
|
||||
// folder()
|
||||
public function folder(): string {
|
||||
$v = "&bp.folder&";
|
||||
return $v;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,20 +1,28 @@
|
|||
@extends('layouts.admin')
|
||||
|
||||
@section('title')
|
||||
Extensions
|
||||
Extensions
|
||||
@endsection
|
||||
|
||||
@section('content-header')
|
||||
<h1>Extensions<small>Manage all your installed extensions.</small></h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('admin.index') }}">Admin</a></li>
|
||||
<li class="active">Extensions</li>
|
||||
</ol>
|
||||
<h1>Extensions<small>Manage all your installed extensions.</small></h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('admin.index') }}">Admin</a></li>
|
||||
<li class="active">Extensions</li>
|
||||
</ol>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
@if($bp->version() != "&bp.version&")
|
||||
|
||||
<div class="col-xs-6 col-sm-3 text-center">
|
||||
<a href="{{ route('admin.extensions.blueprint.index') }}"><button class="btn btn-gray" style="width:100%;margin-bottom:17px;"><img src="/assets/extensions/blueprint/logo.jpg" alt="logo" class="img-btn"> Blueprint <small>{{ $bp->version() }}</small></button></a>
|
||||
<a href="{{ route('admin.extensions.blueprint.index') }}"><button class="btn btn-gray" style="width:100%;margin-bottom:17px;"><img src="/assets/extensions/blueprint/logo.jpg" alt="logo" class="img-btn"> Blueprint <small>{{ $bp->version() }}</small></button></a>
|
||||
</div>
|
||||
<!--␀replace␀-->
|
||||
@endsection
|
||||
|
||||
@else
|
||||
|
||||
<p><i class='bx bxs-bug'></i> We're glad you are excited to install Blueprint onto your panel, but please tone it down a little. To start using Blueprint, run the installation script. <a href="https://github.com/teamblueprint/main#installation">Learn more.</a></p>
|
||||
|
||||
@endif
|
||||
@endsection
|
||||
|
|
Loading…
Reference in a new issue