Show nest/egg IDs in listing, closes #687

This commit is contained in:
Dane Everitt 2017-12-31 13:14:30 -06:00
parent bcbf4614ea
commit c3a69fce75
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 18 additions and 4 deletions

View file

@ -10,6 +10,9 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
* `[beta.3]` — Fixes a bug that would cause an error when attempting to create a new user on the Panel.
* `[beta.3]` — Fixes error handling of the settings service provider when no migrations have been run.
### Added
* Nest and Egg listings now show the associated ID in order to make API requests easier.
## v0.7.0-beta.3 (Derelict Dermodactylus)
### Fixed
* `[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.

View file

@ -38,6 +38,7 @@
<div class="box-body table-responsive no-padding">
<table class="table table-hover">
<tr>
<th>ID</th>
<th>Name</th>
<th>Description</th>
<th class="text-center">Eggs</th>
@ -46,11 +47,12 @@
</tr>
@foreach($nests as $nest)
<tr>
<td class="middle"><code>{{ $nest->id }}</code></td>
<td class="middle"><a href="{{ route('admin.nests.view', $nest->id) }}" data-toggle="tooltip" data-placement="right" title="{{ $nest->author }}">{{ $nest->name }}</a></td>
<td class="col-xs-6 middle">{{ $nest->description }}</td>
<td class="text-center middle"><code>{{ $nest->eggs_count }}</code></td>
<td class="text-center middle"><code>{{ $nest->packs_count }}</code></td>
<td class="text-center middle"><code>{{ $nest->servers_count }}</code></td>
<td class="text-center middle">{{ $nest->eggs_count }}</td>
<td class="text-center middle">{{ $nest->packs_count }}</td>
<td class="text-center middle">{{ $nest->servers_count }}</td>
</tr>
@endforeach
</table>

View file

@ -49,6 +49,13 @@
<div class="col-md-6">
<div class="box">
<div class="box-body">
<div class="form-group">
<label class="control-label">Nest ID</label>
<div>
<input type="text" readonly class="form-control" value="{{ $nest->id }}" />
<p class="text-muted small">A unique ID used for identification of this nest internally and through the API.</p>
</div>
</div>
<div class="form-group">
<label class="control-label">Author</label>
<div>
@ -60,7 +67,7 @@
<label class="control-label">UUID</label>
<div>
<input type="text" readonly class="form-control" value="{{ $nest->uuid }}" />
<p class="text-muted small">A unique identifier that all servers using this option are assigned for identification purposes.</p>
<p class="text-muted small">A UUID that all servers using this option are assigned for identification purposes.</p>
</div>
</div>
</div>
@ -76,6 +83,7 @@
<div class="box-body table-responsive no-padding">
<table class="table table-hover">
<tr>
<th>ID</th>
<th>Name</th>
<th>Description</th>
<th class="text-center">Servers</th>
@ -83,6 +91,7 @@
</tr>
@foreach($nest->eggs as $egg)
<tr>
<td class="align-middle"><code>{{ $egg->id }}</code></td>
<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>
<td class="col-xs-8 align-middle">{!! $egg->description !!}</td>
<td class="text-center align-middle"><code>{{ $egg->servers->count() }}</code></td>