From a411e216b0e6e4431e0b867cfc66e8ea738c8d96 Mon Sep 17 00:00:00 2001 From: Jakob Schrettenbrunner Date: Fri, 20 Oct 2017 10:41:37 +0200 Subject: [PATCH] add link on server navigation to get to the admin page of the current server --- resources/lang/en/navigation.php | 1 + resources/themes/pterodactyl/layouts/master.blade.php | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/resources/lang/en/navigation.php b/resources/lang/en/navigation.php index af3fe9a3c..5693d825d 100644 --- a/resources/lang/en/navigation.php +++ b/resources/lang/en/navigation.php @@ -25,5 +25,6 @@ return [ 'startup_parameters' => 'Startup Parameters', 'databases' => 'Databases', 'edit_file' => 'Edit File', + 'admin' => 'Manage', ], ]; diff --git a/resources/themes/pterodactyl/layouts/master.blade.php b/resources/themes/pterodactyl/layouts/master.blade.php index 102d45fa9..367d29959 100644 --- a/resources/themes/pterodactyl/layouts/master.blade.php +++ b/resources/themes/pterodactyl/layouts/master.blade.php @@ -184,6 +184,13 @@ @endif + @if(Auth::user()->root_admin) +
  • + + @lang('navigation.server.admin') + +
  • + @endif @endif