refactor(ui): separate views for instance settings to separate paths to make it cleaner
This commit is contained in:
@@ -8,25 +8,29 @@
|
||||
<livewire:source.github.create />
|
||||
</x-modal-input>
|
||||
</div>
|
||||
<div class="subtitle ">Git sources for your applications.</div>
|
||||
<div class="grid gap-2 lg:grid-cols-2">
|
||||
<div class="subtitle">Git sources for your applications.</div>
|
||||
<div class="grid gap-4 lg:grid-cols-2">
|
||||
@forelse ($sources as $source)
|
||||
@if ($source->getMorphClass() === 'App\Models\GithubApp')
|
||||
<a class="flex gap-4 text-center hover:no-underline box group"
|
||||
<a class="flex gap-2 text-center hover:no-underline box group"
|
||||
href="{{ route('source.github.show', ['github_app_uuid' => data_get($source, 'uuid')]) }}">
|
||||
<x-git-icon class="dark:text-white w-9 h-9" git="{{ $source->getMorphClass() }}" />
|
||||
<div class="text-left dark:group-hover:text-white">
|
||||
{{-- <x-git-icon class="dark:text-white w-8 h-8 mt-1" git="{{ $source->getMorphClass() }}" /> --}}
|
||||
<div class="text-left dark:group-hover:text-white flex flex-col justify-center mx-6">
|
||||
<div class="box-title">{{ $source->name }}</div>
|
||||
@if (is_null($source->app_id))
|
||||
<span class="box-description text-error! ">Configuration is not finished.</span>
|
||||
@else
|
||||
@if ($source->organization)
|
||||
<span class="box-description">Organization: {{ $source->organization }}</span>
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
</a>
|
||||
@endif
|
||||
@if ($source->getMorphClass() === 'App\Models\GitlabApp')
|
||||
{{-- @if ($source->getMorphClass() === 'App\Models\GitlabApp')
|
||||
<a class="flex gap-4 text-center hover:no-underline box group"
|
||||
href="{{ route('source.gitlab.show', ['gitlab_app_uuid' => data_get($source, 'uuid')]) }}">
|
||||
<x-git-icon class="dark:text-white w-9 h-9" git="{{ $source->getMorphClass() }}" />
|
||||
<x-git-icon class="dark:text-white w-8 h-8" git="{{ $source->getMorphClass() }}" />
|
||||
<div class="text-left dark:group-hover:text-white">
|
||||
<div>{{ $source->name }}</div>
|
||||
@if (is_null($source->app_id))
|
||||
@@ -34,7 +38,7 @@
|
||||
@endif
|
||||
</div>
|
||||
</a>
|
||||
@endif
|
||||
@endif --}}
|
||||
@empty
|
||||
<div>
|
||||
<div>No sources found.</div>
|
||||
|
||||
Reference in New Issue
Block a user