Refactor server delete view to display defined resources as links
This commit is contained in:
parent
3e2e1080f5
commit
4c0623f022
@ -32,15 +32,17 @@
|
|||||||
@empty
|
@empty
|
||||||
@endforelse
|
@endforelse
|
||||||
@else
|
@else
|
||||||
|
<div class="flex flex-col">
|
||||||
@forelse ($server->definedResources() as $resource)
|
@forelse ($server->definedResources() as $resource)
|
||||||
@if ($loop->first)
|
@if ($loop->first)
|
||||||
<h3 class="pt-4">Defined resources</h3>
|
<h3 class="pt-4">Defined resources</h3>
|
||||||
@endif
|
@endif
|
||||||
<div class="flex gap-2">
|
<a class="flex gap-2 p-1 hover:bg-coolgray-100 hover:no-underline" href="{{ $resource->link() }}">
|
||||||
<div class="w-64">{{ str($resource->type())->headline() }}</div>
|
<div class="w-64">{{ str($resource->type())->headline() }}</div>
|
||||||
<a class="text-white underline" href="{{ $resource->link() }}">{{ $resource->name }}</a>
|
<div >{{ $resource->name }}</div>
|
||||||
</div>
|
</a>
|
||||||
@empty
|
@empty
|
||||||
@endforelse
|
@endforelse
|
||||||
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user