mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-15 06:16:04 +00:00
feat(destination): show resources that are deployed on the destination
This commit is contained in:
3 files changed
+86
-1
No files matched your search
@@ -28,4 +28,24 @@
|
||||
@endif
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@if ($destination->getMorphClass() === 'App\Models\StandaloneDocker')
|
||||
<div class="pt-6">
|
||||
<h3>Resources</h3>
|
||||
<div class="pb-2 text-xs opacity-70">Applications, services, and databases deployed to this network.</div>
|
||||
@if (count($resources) === 0)
|
||||
<div class="text-xs opacity-70 pt-2">No resources are using this destination.</div>
|
||||
@else
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-2 pt-2">
|
||||
@foreach ($resources as $row)
|
||||
<a href="{{ $row['url'] }}"
|
||||
class="relative flex flex-col dark:text-white coolbox group cursor-pointer">
|
||||
<div class="box-title">{{ ucfirst($row['type']) }}: {{ $row['name'] }}</div>
|
||||
<div class="box-description">{{ $row['project'] }} / {{ $row['environment'] }}</div>
|
||||
</a>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
Reference in new issue
Block a user