An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
refactor(application-source): improve layout and accessibility of Git repository links in the application source view
Andras Bacsaifc7770100bf7
diff --git a/resources/views/livewire/project/application/source.blade.php b/resources/views/livewire/project/application/source.blade.phpindex 9e746fadb5..9d0d53f2ed 100644--- a/resources/views/livewire/project/application/source.blade.php+++ b/resources/views/livewire/project/application/source.blade.php@@ -5,25 +5,25 @@@can('update', $application)<x-forms.button type="submit">Save</x-forms.button>@endcan- <a target="_blank" class="hover:no-underline" href="{{ $application?->gitBranchLocation }}">- <x-forms.button>+ <div class="flex items-center gap-4 px-2">+ <a target="_blank" class="hover:no-underline flex items-center gap-1"+ href="{{ $application?->gitBranchLocation }}">Open Repository<x-external-link />- </x-forms.button>- </a>- @if (data_get($application, 'source.is_public') === false)- <a target="_blank" class="hover:no-underline" href="{{ getInstallationPath($application->source) }}">- <x-forms.button>+ </a>+ @if (data_get($application, 'source.is_public') === false)+ <a target="_blank" class="hover:no-underline flex items-center gap-1"+ href="{{ getInstallationPath($application->source) }}">Open Git App<x-external-link />- </x-forms.button>- </a>- @endif- <a target="_blank" class="flex hover:no-underline" href="{{ $application?->gitCommits }}">- <x-forms.button>Open Commits on Git+ </a>+ @endif+ <a target="_blank" class="flex hover:no-underline items-center gap-1"+ href="{{ $application?->gitCommits }}">+ Open Commits on Git<x-external-link />- </x-forms.button>- </a>+ </a>+ </div></div><div class="pb-4">Code source of your application.</div>@@ -34,11 +34,13 @@</div>@endif<div class="flex gap-2">- <x-forms.input placeholder="coollabsio/coolify-example" id="gitRepository" label="Repository" canGate="update" :canResource="$application" />+ <x-forms.input placeholder="coollabsio/coolify-example" id="gitRepository" label="Repository"+ canGate="update" :canResource="$application" /><x-forms.input placeholder="main" id="gitBranch" label="Branch" canGate="update" :canResource="$application" /></div><div class="flex items-end gap-2">- <x-forms.input placeholder="HEAD" id="gitCommitSha" placeholder="HEAD" label="Commit SHA" canGate="update" :canResource="$application" />+ <x-forms.input placeholder="HEAD" id="gitCommitSha" placeholder="HEAD" label="Commit SHA"+ canGate="update" :canResource="$application" /></div></div>