Skip to content

Commit a3bad52

Browse files
committed
1 parent 4b5ee92 commit a3bad52

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

resources/themes/pterodactyl/admin/servers/index.blade.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
<th>Node</th>
4646
<th>Connection</th>
4747
<th></th>
48+
<th></th>
4849
</tr>
4950
@foreach ($servers as $server)
5051
<tr data-server="{{ $server->uuidShort }}">
@@ -64,6 +65,10 @@
6465
<span class="label label-success">Active</span>
6566
@endif
6667
</td>
68+
<td class="text-center">
69+
<a class="btn btn-xs btn-default" href="{{ route('server.index', $server->uuidShort) }}"><i class="fa fa-wrench"></i></a>
70+
<a class="btn btn-xs btn-default console-popout" href="{{ route('server.console', $server->uuidShort) }}"><i class="fa fa-terminal"></i></a>
71+
</td>
6772
</tr>
6873
@endforeach
6974
</tbody>
@@ -78,3 +83,13 @@
7883
</div>
7984
</div>
8085
@endsection
86+
87+
@section('footer-scripts')
88+
@parent
89+
<script>
90+
$('.console-popout').on('click', function (event) {
91+
event.preventDefault();
92+
window.open($(this).attr('href'), 'Pterodactyl Console', 'width=800,height=400');
93+
});
94+
</script>
95+
@endsection

resources/themes/pterodactyl/admin/servers/view/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
@endsection
1111

1212
@section('content-header')
13-
<h1>{{ $server->name }}<small>{{ $server->uuid }}</small></h1>
13+
<h1>{{ $server->name }}<small>{{ str_limit($server->description) }}</small></h1>
1414
<ol class="breadcrumb">
1515
<li><a href="{{ route('admin.index') }}">Admin</a></li>
1616
<li><a href="{{ route('admin.servers') }}">Servers</a></li>

0 commit comments

Comments
 (0)