Merge pull request #698 from Pterodactyl/feature/admin-server-link

add link on server navigation to get to the admin page
This commit is contained in:
Dane Everitt 2017-10-20 14:46:26 -04:00 committed by GitHub
commit b1fae66c60
2 changed files with 8 additions and 0 deletions

View File

@ -25,5 +25,6 @@ return [
'startup_parameters' => 'Startup Parameters',
'databases' => 'Databases',
'edit_file' => 'Edit File',
'admin' => 'Manage',
],
];

View File

@ -184,6 +184,13 @@
</ul>
</li>
@endif
@if(Auth::user()->root_admin)
<li>
<a href="{{ route('admin.servers.view', $server->id) }}">
<i class="fa fa-cog"></i> <span>@lang('navigation.server.admin')</span>
</a>
</li>
@endif
@endif
</ul>
</section>