diff --git a/app/Livewire/Project/New/Select.php b/app/Livewire/Project/New/Select.php index d573e3f7a0..f000496387 100644 --- a/app/Livewire/Project/New/Select.php +++ b/app/Livewire/Project/New/Select.php @@ -300,7 +300,8 @@ class Select extends Component /** * Derive a website link from the documentation URL. Shared hosts keep the - * path that identifies the project, so the link does not open the host root. + * path that identifies the project, so the link does not open the host root. The ref tells the site that the + * visitor came from Coolify. */ private function serviceWebsiteUrl(?string $documentation): ?string { @@ -318,7 +319,7 @@ class Select extends Component $projectPath = str($url['path'] ?? '')->explode('/')->filter()->take($projectPathSegments)->implode('/'); - return rtrim("{$url['scheme']}://{$url['host']}/{$projectPath}", '/'); + return rtrim("{$url['scheme']}://{$url['host']}/{$projectPath}", '/').'?ref=coolify.io'; } private function serviceTemplatesLastUpdated(): ?string diff --git a/resources/views/livewire/project/new/select.blade.php b/resources/views/livewire/project/new/select.blade.php index 5288bf6eaf..769523b76a 100644 --- a/resources/views/livewire/project/new/select.blade.php +++ b/resources/views/livewire/project/new/select.blade.php @@ -20,6 +20,18 @@
+ {{-- Only the view that is not current shows, as an icon: the button switches to that view. --}} +
+ @foreach (['list' => ['List view', 'unordered-list'], 'grid' => ['Grid view', 'grid']] as $mode => [$viewLabel, $icon]) + + @endforeach +
+
-
- +
@@ -223,62 +244,65 @@

Databases

-
- +
@@ -297,22 +321,26 @@ -
+
+
The respective trademarks mentioned here are owned by the respective companies, and use of them does not imply any affiliation or endorsement. +
-
+