show Suspended server in overview fixes #386 (#388)

* show Suspended server in overview fixes #386

* changed to use just check instead of being specific for 1
This commit is contained in:
kasper Franz 2017-04-17 20:26:45 +02:00 committed by Dane Everitt
parent 2006920427
commit de436d3c83
2 changed files with 3 additions and 2 deletions

View file

@ -5,6 +5,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
## v0.6.0-beta.3 (Courageous Carniadactylus) ## v0.6.0-beta.3 (Courageous Carniadactylus)
### Fixed ### Fixed
* `[beta.2]` — Suspended servers now show as suspended.
* `[beta.2]` — Corrected the information when a task has not run yet. * `[beta.2]` — Corrected the information when a task has not run yet.
* `[beta.2]` — Fixes filemanager 404 when editing a file within a directory. * `[beta.2]` — Fixes filemanager 404 when editing a file within a directory.
* `[beta.2]` — Fixes exception in tasks when deleting a server. * `[beta.2]` — Fixes exception in tasks when deleting a server.

View file

@ -62,7 +62,7 @@
<th class="text-center">@lang('strings.status')</th> <th class="text-center">@lang('strings.status')</th>
</tr> </tr>
@foreach($servers as $server) @foreach($servers as $server)
<tr class="dynamic-update" data-server="{{ $server->uuidShort }}"> <tr class=" {{$server->suspended ?: 'dynamic-update' }}" data-server="{{ $server->uuidShort }}">
<td @if(! empty($server->description)) rowspan="2" @endif><code>{{ $server->uuidShort }}</code></td> <td @if(! empty($server->description)) rowspan="2" @endif><code>{{ $server->uuidShort }}</code></td>
<td><a href="{{ route('server.index', $server->uuidShort) }}">{{ $server->name }}</a></td> <td><a href="{{ route('server.index', $server->uuidShort) }}">{{ $server->name }}</a></td>
<td>{{ $server->node->name }}</td> <td>{{ $server->node->name }}</td>
@ -79,7 +79,7 @@
@endif @endif
</td> </td>
<td class="text-center" data-action="status"> <td class="text-center" data-action="status">
@if($server->suspended === 1) @if($server->suspended)
<span class="label label-warning">@lang('strings.suspended')</span> <span class="label label-warning">@lang('strings.suspended')</span>
@else @else
<span class="label label-default"><i class="fa fa-refresh fa-fw fa-spin"></i></span> <span class="label label-default"><i class="fa fa-refresh fa-fw fa-spin"></i></span>