Big red warning box to prevent the inevitable users trying to run this as a prod build

This commit is contained in:
Dane Everitt 2019-12-21 17:40:03 -08:00
parent 11c17245c2
commit a1a344bc48
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
1 changed files with 8 additions and 0 deletions

View File

@ -38,6 +38,14 @@
@include('layouts.scripts')
</head>
<body class="{{ $css['body'] ?? 'bg-neutral-50' }}">
@if(\Illuminate\Support\Str::contains(config('app.version'), ['-alpha', '-beta']))
<div class="bg-red-500">
<p class="text-center text-white text-sm p-3">
You are running a pre-release version of Pterodactyl. Please report any issues
<a href="https://github.com/pterodactyl/panel/issues" class="text-red-100">via GitHub</a>.
</p>
</div>
@endif
@section('content')
@yield('above-container')
@yield('container')