coolify/resources/views/source/all.blade.php

45 lines
2.0 KiB
PHP
Raw Normal View History

2023-06-12 22:02:10 +02:00
<x-layout>
2024-06-07 11:01:10 +02:00
<x-slot:title>
Sources | Coolify
</x-slot>
2023-09-24 21:15:21 +02:00
<div class="flex items-start gap-2">
<h1>Sources</h1>
2024-03-25 11:33:38 +01:00
<x-modal-input buttonTitle="+ Add" title="New GitHub App">
<livewire:source.github.create />
</x-modal-input>
2023-09-24 21:15:21 +02:00
</div>
2024-03-22 11:34:15 +01:00
<div class="subtitle ">Git sources for your applications.</div>
2023-06-14 12:48:29 +02:00
<div class="grid gap-2 lg:grid-cols-2">
2023-06-12 22:02:10 +02:00
@forelse ($sources as $source)
@if ($source->getMorphClass() === 'App\Models\GithubApp')
2024-03-21 12:44:32 +01:00
<a class="flex gap-4 text-center hover:no-underline box group"
2023-08-11 20:19:42 +02:00
href="{{ route('source.github.show', ['github_app_uuid' => data_get($source, 'uuid')]) }}">
2024-03-24 16:00:25 +01:00
<x-git-icon class="dark:text-white w-9 h-9" git="{{ $source->getMorphClass() }}" />
<div class="text-left group-hover:dark:text-white">
2023-06-12 22:02:10 +02:00
<div>{{ $source->name }}</div>
2023-06-13 10:59:27 +02:00
@if (is_null($source->app_id))
2023-08-30 14:46:51 +02:00
<span class="text-error">Configuration is not finished</span>
2023-06-13 10:59:27 +02:00
@endif
2023-06-12 22:02:10 +02:00
</div>
</a>
@endif
@if ($source->getMorphClass() === 'App\Models\GitlabApp')
2024-03-21 12:44:32 +01:00
<a class="flex gap-4 text-center hover:no-underline box group"
2023-08-11 20:19:42 +02:00
href="{{ route('source.gitlab.show', ['gitlab_app_uuid' => data_get($source, 'uuid')]) }}">
2024-03-24 16:00:25 +01:00
<x-git-icon class="dark:text-white w-9 h-9" git="{{ $source->getMorphClass() }}" />
<div class="text-left group-hover:dark:text-white">
2023-06-12 22:02:10 +02:00
<div>{{ $source->name }}</div>
2023-06-13 10:59:27 +02:00
@if (is_null($source->app_id))
2023-08-30 14:46:51 +02:00
<span class="text-error">Configuration is not finished</span>
2023-06-13 10:59:27 +02:00
@endif
2023-06-12 22:02:10 +02:00
</div>
</a>
@endif
@empty
<div>
<div>No sources found.</div>
</div>
@endforelse
</div>
</x-layout>