From bfaefed1aea4864eb30e6c813a919279bae4e785 Mon Sep 17 00:00:00 2001
From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com>
Date: Fri, 19 Sep 2025 13:45:37 +0200
Subject: [PATCH] refactor(environment): streamline rendering of Docker Build
Secrets checkbox and adjust layout for environment variable settings
---
.../shared/environment-variable/all.blade.php | 24 ++++++-------
.../environment-variable/show.blade.php | 34 +++++++++----------
2 files changed, 27 insertions(+), 31 deletions(-)
diff --git a/resources/views/livewire/project/shared/environment-variable/all.blade.php b/resources/views/livewire/project/shared/environment-variable/all.blade.php
index 6854ffaa4..cee6b291d 100644
--- a/resources/views/livewire/project/shared/environment-variable/all.blade.php
+++ b/resources/views/livewire/project/shared/environment-variable/all.blade.php
@@ -28,19 +28,17 @@
@endcan
@endif
- @if (data_get($resource, 'build_pack') !== 'dockercompose')
-
- @can('manageEnvironment', $resource)
-
- @else
-
- @endcan
-
- @endif
+
+ @can('manageEnvironment', $resource)
+
+ @else
+
+ @endcan
+
@endif
@if ($resource->type() === 'service' || $resource?->build_pack === 'dockercompose')
diff --git a/resources/views/livewire/project/shared/environment-variable/show.blade.php b/resources/views/livewire/project/shared/environment-variable/show.blade.php
index 6598b66ff..953bc59fa 100644
--- a/resources/views/livewire/project/shared/environment-variable/show.blade.php
+++ b/resources/views/livewire/project/shared/environment-variable/show.blade.php
@@ -78,22 +78,20 @@
@if ($isSharedVariable)
@else
- @if (!$env->is_coolify)
- @if (!$env->is_nixpacks)
-
- @endif
-
- @if (!$env->is_nixpacks)
-
- @if ($is_multiline === false)
-
- @endif
+ @if (!$env->is_nixpacks)
+
+ @endif
+
+ @if (!$env->is_nixpacks)
+
+ @if ($is_multiline === false)
+
@endif
@endif
@endif
@@ -129,8 +127,8 @@
@if (!$is_redis_credential)
@if ($type === 'service')
+ helper="Make this variable available during Docker build process. Useful for build secrets and dependencies."
+ label="Available at Buildtime" />