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
feat: Add lastDeploymentInfo and lastDeploymentLink props to breadcrumbs and status components
Andras Bacsai7a618ef89c2e
diff --git a/resources/views/components/resources/breadcrumbs.blade.php b/resources/views/components/resources/breadcrumbs.blade.phpindex 90477810ca..efd36a83e4 100644--- a/resources/views/components/resources/breadcrumbs.blade.php+++ b/resources/views/components/resources/breadcrumbs.blade.php@@ -1,3 +1,8 @@+@props([+ 'lastDeploymentInfo' => null,+ 'lastDeploymentLink' => null,+ 'resource' => null,+])<nav class="flex pt-2 pb-10"><ol class="flex flex-wrap items-center gap-y-1"><li class="inline-flex items-center">@@ -15,7 +20,6 @@</li><li><div class="flex items-center">-<a class="text-xs truncate lg:text-sm"href="{{ route('project.resource.index', ['environment_name' => $this->parameters['environment_name'], 'project_uuid' => $this->parameters['project_uuid']]) }}">{{ $this->parameters['environment_name'] }}</a><svg aria-hidden="true" class="w-4 h-4 mx-1 font-bold dark:text-warning" fill="currentColor"diff --git a/resources/views/components/status/index.blade.php b/resources/views/components/status/index.blade.phpindex c8a9f9b55c..0ef6528979 100644--- a/resources/views/components/status/index.blade.php+++ b/resources/views/components/status/index.blade.php@@ -1,6 +1,7 @@@props(['lastDeploymentInfo' => null,'lastDeploymentLink' => null,+ 'resource' => null,])@if (str($resource->status)->startsWith('running'))<x-status.running :status="$resource->status" :lastDeploymentInfo="$lastDeploymentInfo" :lastDeploymentLink="$lastDeploymentLink" />diff --git a/resources/views/components/status/restarting.blade.php b/resources/views/components/status/restarting.blade.phpindex f269b4a5a3..c24f9f213a 100644--- a/resources/views/components/status/restarting.blade.php+++ b/resources/views/components/status/restarting.blade.php@@ -8,7 +8,7 @@<span wire:loading.remove.delay.longer class="flex items-center"><div class="badge badge-warning "></div><div class="pl-2 pr-1 text-xs font-bold tracking-wider dark:text-warning" @if($lastDeploymentInfo) title="{{$lastDeploymentInfo}}" @endif>- @if ($lastDeploymentLink)+ @if ($lastDeploymentLink)<a href="{{ $lastDeploymentLink }}" class="underline cursor-pointer">{{ str($status)->before(':')->headline() }}</a>diff --git a/resources/views/components/status/running.blade.php b/resources/views/components/status/running.blade.phpindex b22f2d057e..7332995a29 100644--- a/resources/views/components/status/running.blade.php+++ b/resources/views/components/status/running.blade.php@@ -7,7 +7,7 @@<x-loading wire:loading.delay.longer /><span wire:loading.remove.delay.longer class="flex items-center"><div class="badge badge-success "></div>- <div class="pl-2 pr-1 text-xs font-bold tracking-wider text-success @if($lastDeploymentInfo) title="{{$lastDeploymentInfo}}" @endif>+ <div class="pl-2 pr-1 text-xs font-bold tracking-wider text-success" @if($lastDeploymentInfo) title="{{$lastDeploymentInfo}}" @endif>@if ($lastDeploymentLink)<a href="{{ $lastDeploymentLink }}" class="underline cursor-pointer">{{ str($status)->before(':')->headline() }}