Skip to content

Commit c3a69fc

Browse files
committed
Show nest/egg IDs in listing, closes pterodactyl#687
1 parent bcbf461 commit c3a69fc

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
1010
* `[beta.3]` — Fixes a bug that would cause an error when attempting to create a new user on the Panel.
1111
* `[beta.3]` — Fixes error handling of the settings service provider when no migrations have been run.
1212

13+
### Added
14+
* Nest and Egg listings now show the associated ID in order to make API requests easier.
15+
1316
## v0.7.0-beta.3 (Derelict Dermodactylus)
1417
### Fixed
1518
* `[beta.2]` — Fixes a bug that would cause an endless exception message stream in the console when attemping to setup environment settings in certain instances.

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
<div class="box-body table-responsive no-padding">
3939
<table class="table table-hover">
4040
<tr>
41+
<th>ID</th>
4142
<th>Name</th>
4243
<th>Description</th>
4344
<th class="text-center">Eggs</th>
@@ -46,11 +47,12 @@
4647
</tr>
4748
@foreach($nests as $nest)
4849
<tr>
50+
<td class="middle"><code>{{ $nest->id }}</code></td>
4951
<td class="middle"><a href="{{ route('admin.nests.view', $nest->id) }}" data-toggle="tooltip" data-placement="right" title="{{ $nest->author }}">{{ $nest->name }}</a></td>
5052
<td class="col-xs-6 middle">{{ $nest->description }}</td>
51-
<td class="text-center middle"><code>{{ $nest->eggs_count }}</code></td>
52-
<td class="text-center middle"><code>{{ $nest->packs_count }}</code></td>
53-
<td class="text-center middle"><code>{{ $nest->servers_count }}</code></td>
53+
<td class="text-center middle">{{ $nest->eggs_count }}</td>
54+
<td class="text-center middle">{{ $nest->packs_count }}</td>
55+
<td class="text-center middle">{{ $nest->servers_count }}</td>
5456
</tr>
5557
@endforeach
5658
</table>

resources/themes/pterodactyl/admin/nests/view.blade.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@
4949
<div class="col-md-6">
5050
<div class="box">
5151
<div class="box-body">
52+
<div class="form-group">
53+
<label class="control-label">Nest ID</label>
54+
<div>
55+
<input type="text" readonly class="form-control" value="{{ $nest->id }}" />
56+
<p class="text-muted small">A unique ID used for identification of this nest internally and through the API.</p>
57+
</div>
58+
</div>
5259
<div class="form-group">
5360
<label class="control-label">Author</label>
5461
<div>
@@ -60,7 +67,7 @@
6067
<label class="control-label">UUID</label>
6168
<div>
6269
<input type="text" readonly class="form-control" value="{{ $nest->uuid }}" />
63-
<p class="text-muted small">A unique identifier that all servers using this option are assigned for identification purposes.</p>
70+
<p class="text-muted small">A UUID that all servers using this option are assigned for identification purposes.</p>
6471
</div>
6572
</div>
6673
</div>
@@ -76,13 +83,15 @@
7683
<div class="box-body table-responsive no-padding">
7784
<table class="table table-hover">
7885
<tr>
86+
<th>ID</th>
7987
<th>Name</th>
8088
<th>Description</th>
8189
<th class="text-center">Servers</th>
8290
<th class="text-center"></th>
8391
</tr>
8492
@foreach($nest->eggs as $egg)
8593
<tr>
94+
<td class="align-middle"><code>{{ $egg->id }}</code></td>
8695
<td class="align-middle"><a href="{{ route('admin.nests.egg.view', $egg->id) }}" data-toggle="tooltip" data-placement="right" title="{{ $egg->author }}">{{ $egg->name }}</a></td>
8796
<td class="col-xs-8 align-middle">{!! $egg->description !!}</td>
8897
<td class="text-center align-middle"><code>{{ $egg->servers->count() }}</code></td>

0 commit comments

Comments
 (0)