Make server overview cleaner and easier to follow

Also adds allocation information tab, still need to make it so users
can actually change their default connection address
This commit is contained in:
Dane Everitt 2016-01-03 00:28:33 -05:00
parent 79214c2cb2
commit fb77e23eb4
4 changed files with 142 additions and 84 deletions

View file

@ -6,6 +6,7 @@ use Auth;
use Pterodactyl\Models\Server;
use Pterodactyl\Models\Node;
use Pterodactyl\Models\Download;
use Pterodactyl\Models\Allocation;
use Debugbar;
use Uuid;
use Alert;
@ -46,6 +47,7 @@ class ServerController extends Controller
$server = Server::getByUUID($request->route()->server);
return view('server.index', [
'server' => $server,
'allocations' => Allocation::where('assigned_to', $server->id)->orderBy('ip', 'asc')->orderBy('port', 'asc')->get(),
'node' => Node::find($server->node)
]);
}