This commit is contained in:
Andras Bacsai
2023-06-15 14:41:39 +02:00
parent 719d3114da
commit 58236e0840
3 changed files with 22 additions and 18 deletions

View File

@@ -14,7 +14,7 @@
</div>
@if ($destination->getMorphClass() === 'App\Models\StandaloneDocker')
<div class="pt-2 pb-10 text-sm">Your standalone docker network.</div>
<div class="pt-2 pb-10 text-sm">A Docker network in a non-swarm environment</div>
@else
<div class="pt-2 pb-10 text-sm">Your swarm docker network. WIP</div>
@endif

View File

@@ -6,11 +6,12 @@
<x-forms.button>Add a new destination</x-forms.button>
</a>
</div>
<div class="pt-2 pb-8 text-sm">Docker Networks available on the server</div>
<div class="pb-10 text-sm">
<div class="pt-2 pb-6 text-sm">Destinations are used to segregate resources by network.</div>
<div class="flex gap-2 text-sm">
Docker Networks available on the server:
@forelse ($server->standaloneDockers as $docker)
<a href="{{ route('destination.show', ['destination_uuid' => data_get($docker, 'uuid')]) }}">
<x-forms.button>{{ data_get($docker, 'network') }} </x-forms.button>
<button class="text-white btn-link">{{ data_get($docker, 'network') }} </button>
</a>
@empty
<div class="text-sm">No destinations added</div>