Merge pull request #163 from ControlPanel-gg/database_button_68
Don't display database button when phpmyadmin is empty
This commit is contained in:
commit
3cfae8a896
|
@ -33,8 +33,8 @@ DISCORD_GUILD_ID=
|
||||||
DISCORD_ROLE_ID=
|
DISCORD_ROLE_ID=
|
||||||
|
|
||||||
#nesseary URL's
|
#nesseary URL's
|
||||||
PTERODACTYL_URL=https://panel.bitsec.dev
|
PTERODACTYL_URL=https://panel.controlpanel.gg
|
||||||
PHPMYADMIN_URL=https://mysql.bitsec.dev
|
PHPMYADMIN_URL=https://mysql.controlpanel.gg #optional. remove to remove database button
|
||||||
DISCORD_INVITE_URL=https://discord.gg/vrUYdxG4wZ
|
DISCORD_INVITE_URL=https://discord.gg/vrUYdxG4wZ
|
||||||
|
|
||||||
#GOOGLE RECAPTCHA
|
#GOOGLE RECAPTCHA
|
||||||
|
|
|
@ -45,7 +45,9 @@
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-menu dropdown-menu-right shadow animated--fade-in" aria-labelledby="dropdownMenuLink">
|
<div class="dropdown-menu dropdown-menu-right shadow animated--fade-in" aria-labelledby="dropdownMenuLink">
|
||||||
<a href="{{env('PTERODACTYL_URL' , 'http://localhost')}}/server/{{$server->identifier}}" target="__blank" class="dropdown-item text-info"><i title="manage" class="fas fa-tasks mr-2"></i><span>Manage</span></a>
|
<a href="{{env('PTERODACTYL_URL' , 'http://localhost')}}/server/{{$server->identifier}}" target="__blank" class="dropdown-item text-info"><i title="manage" class="fas fa-tasks mr-2"></i><span>Manage</span></a>
|
||||||
<a href="{{env('PHPMYADMIN_URL' , 'http://localhost')}}" class="dropdown-item text-info" target="__blank"><i title="manage" class="fas fa-database mr-2"></i><span>Database</span></a>
|
@if(!empty(env('PHPMYADMIN_URL')))
|
||||||
|
<a href="{{env('PHPMYADMIN_URL' , 'http://localhost')}}" class="dropdown-item text-info" target="__blank"><i title="manage" class="fas fa-database mr-2"></i><span>Database</span></a>
|
||||||
|
@endif
|
||||||
<form method="post" onsubmit="return submitResult();" action="{{route('servers.destroy' , $server->id)}}">
|
<form method="post" onsubmit="return submitResult();" action="{{route('servers.destroy' , $server->id)}}">
|
||||||
@csrf
|
@csrf
|
||||||
@method('DELETE')
|
@method('DELETE')
|
||||||
|
@ -87,7 +89,9 @@
|
||||||
|
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<a href="{{env('PTERODACTYL_URL' , 'http://localhost')}}/server/{{$server->identifier}}" target="__blank" class="btn btn-info mx-3 w-100"><i class="fas fa-tasks mr-2"></i>Manage</a>
|
<a href="{{env('PTERODACTYL_URL' , 'http://localhost')}}/server/{{$server->identifier}}" target="__blank" class="btn btn-info mx-3 w-100"><i class="fas fa-tasks mr-2"></i>Manage</a>
|
||||||
<a href="{{env('PHPMYADMIN_URL' , 'http://localhost')}}" target="__blank" class="btn btn-info mx-3 w-100" ><i class="fas fa-database mr-2"></i>Database</a>
|
@if(!empty(env('PHPMYADMIN_URL')))
|
||||||
|
<a href="{{env('PHPMYADMIN_URL' , 'http://localhost')}}" target="__blank" class="btn btn-info mx-3 w-100" ><i class="fas fa-database mr-2"></i>Database</a>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue