improve navigation

This commit is contained in:
Andras Bacsai
2025-01-16 11:04:50 +01:00
parent 3f92c1e37b
commit 433dff2684
5 changed files with 32 additions and 37 deletions

View File

@@ -12,21 +12,19 @@
<div class="grid gap-2 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"
wire:navigate
<a class="flex gap-4 text-center hover:no-underline box group" wire:navigate
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 group-hover:dark:text-white">
<div>{{ $source->name }}</div>
<div class="box-title">{{ $source->name }}</div>
@if (is_null($source->app_id))
<span class="text-error">Configuration is not finished</span>
<span class="box-description !text-error ">Configuration is not finished.</span>
@endif
</div>
</a>
@endif
@if ($source->getMorphClass() === 'App\Models\GitlabApp')
<a class="flex gap-4 text-center hover:no-underline box group"
wire:navigate
<a class="flex gap-4 text-center hover:no-underline box group" wire:navigate
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() }}" />
<div class="text-left group-hover:dark:text-white">