Update Admin Overview for server
Changes CPU Threads show Not Set instead of n/a Changes 0% -> Unlimited, when cpu is set to 0(unlimited) Changes 0MB -> Unlimited, when memory is set to 0(unlimited) Changes 0MB Swap -> Not Set Changes -1 Swap -> Unlimited Changes Name -> Server Name Changes Service -> Current Egg
This commit is contained in:
parent
4193c5f664
commit
0cad2b9362
1 changed files with 25 additions and 5 deletions
|
@ -47,19 +47,25 @@
|
||||||
<td><code>{{ $server->uuid }}</code></td>
|
<td><code>{{ $server->uuid }}</code></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Service</td>
|
<td>Current Egg</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="{{ route('admin.nests.view', $server->nest_id) }}">{{ $server->nest->name }}</a> ::
|
<a href="{{ route('admin.nests.view', $server->nest_id) }}">{{ $server->nest->name }}</a> ::
|
||||||
<a href="{{ route('admin.nests.egg.view', $server->egg_id) }}">{{ $server->egg->name }}</a>
|
<a href="{{ route('admin.nests.egg.view', $server->egg_id) }}">{{ $server->egg->name }}</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Name</td>
|
<td>Server Name</td>
|
||||||
<td>{{ $server->name }}</td>
|
<td>{{ $server->name }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>CPU Limit</td>
|
<td>CPU Limit</td>
|
||||||
<td><code>{{ $server->cpu }}%</code></td>
|
<td>
|
||||||
|
@if($server->cpu === 0)
|
||||||
|
<code>Unlimited</code>
|
||||||
|
@else
|
||||||
|
<code>{{ $server->cpu }}%</code>
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>CPU Threads</td>
|
<td>CPU Threads</td>
|
||||||
|
@ -67,13 +73,27 @@
|
||||||
@if($server->threads != null)
|
@if($server->threads != null)
|
||||||
<code>{{ $server->threads }}</code>
|
<code>{{ $server->threads }}</code>
|
||||||
@else
|
@else
|
||||||
<code>n/a</code>
|
<span class="label label-default">Not Set</span>
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Memory</td>
|
<td>Memory</td>
|
||||||
<td><code>{{ $server->memory }}MB</code> / <code data-toggle="tooltip" data-placement="top" title="Swap Space">{{ $server->swap }}MB</code></td>
|
<td>
|
||||||
|
@if($server->memory === 0)
|
||||||
|
<code>Unlimited</code>
|
||||||
|
@else
|
||||||
|
<code>{{ $server->memory }}MB</code>
|
||||||
|
@endif
|
||||||
|
/
|
||||||
|
@if($server->swap === 0)
|
||||||
|
<code data-toggle="tooltip" data-placement="top" title="Swap Space">Not Set</code>
|
||||||
|
@elseif($server->swap === -1)
|
||||||
|
<code data-toggle="tooltip" data-placement="top" title="Swap Space">Unlimited</code>
|
||||||
|
@else
|
||||||
|
<code data-toggle="tooltip" data-placement="top" title="Swap Space"> {{ $server->swap }}MB</code>
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Disk Space</td>
|
<td>Disk Space</td>
|
||||||
|
|
Loading…
Reference in a new issue