Remove unused code for displaying server resources
This commit is contained in:
parent
b8708f086e
commit
e0b0dda382
@ -15,40 +15,5 @@
|
||||
This server will be deleted. It is not reversible. <br>Please think again.
|
||||
</x-new-modal>
|
||||
@endif
|
||||
<div class="flex flex-col">
|
||||
@forelse ($server->definedResources() as $resource)
|
||||
@if ($loop->first)
|
||||
<h3 class="pt-4">Resources</h3>
|
||||
@endif
|
||||
@if ($resource->link())
|
||||
<a class="flex gap-2 p-1 hover:bg-coolgray-100 hover:no-underline" href="{{ $resource->link() }}">
|
||||
<div class="w-40">
|
||||
@if ($resource->type() === 'service')
|
||||
<x-status.services :service="$resource" />
|
||||
@else
|
||||
<x-status.index :status="$resource->status" :showRefreshButton="false" :showIcon="false" />
|
||||
@endif
|
||||
</div>
|
||||
<div>{{ $resource->name }}<span
|
||||
class="px-2 text-xs">({{ str($resource->type())->headline() }})</span></div>
|
||||
</a>
|
||||
@else
|
||||
<div class="flex gap-2 p-1 hover:bg-coolgray-100 hover:no-underline">
|
||||
<div class="w-40">
|
||||
@if ($resource->type() === 'service')
|
||||
<x-status.services :service="$resource" />
|
||||
@else
|
||||
<x-status.index :status="$resource->status" :showRefreshButton="false" :showIcon="false" />
|
||||
@endif
|
||||
</div>
|
||||
<div>{{ $resource->name }}<span
|
||||
class="px-2 text-xs">({{ str($resource->type())->headline() }})</span></div>
|
||||
</div>
|
||||
@endif
|
||||
@empty
|
||||
@endforelse
|
||||
</div>
|
||||
@else
|
||||
|
||||
@endif
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user