diff --git a/app/Notifications/Server/DockerCleanupFailed.php b/app/Notifications/Server/DockerCleanupFailed.php index d7f70e029..53714925c 100644 --- a/app/Notifications/Server/DockerCleanupFailed.php +++ b/app/Notifications/Server/DockerCleanupFailed.php @@ -25,8 +25,8 @@ class DockerCleanupFailed extends CustomEmailNotification $mail = new MailMessage; $mail->subject("Coolify: [ACTION REQUIRED] Docker cleanup job failed on {$this->server->name}"); $mail->view('emails.docker-cleanup-failed', [ - 'serverName' => $this->server->name, - 'message' => $this->message, + 'name' => $this->server->name, + 'text' => $this->message, ]); return $mail; diff --git a/app/Notifications/Server/DockerCleanupSuccess.php b/app/Notifications/Server/DockerCleanupSuccess.php index eb84de787..85a819da2 100644 --- a/app/Notifications/Server/DockerCleanupSuccess.php +++ b/app/Notifications/Server/DockerCleanupSuccess.php @@ -25,14 +25,13 @@ class DockerCleanupSuccess extends CustomEmailNotification $mail = new MailMessage; $mail->subject("Coolify: Docker cleanup job succeeded on {$this->server->name}"); $mail->view('emails.docker-cleanup-success', [ - 'serverName' => $this->server->name, - 'message' => $this->message, + 'name' => $this->server->name, + 'text' => $this->message, ]); return $mail; } - public function toDiscord(): DiscordMessage { return new DiscordMessage( diff --git a/resources/views/emails/docker-cleanup-failed.blade.php b/resources/views/emails/docker-cleanup-failed.blade.php index 9661df084..a12f20fa8 100644 --- a/resources/views/emails/docker-cleanup-failed.blade.php +++ b/resources/views/emails/docker-cleanup-failed.blade.php @@ -1,8 +1,8 @@ -Docker Cleanup on {{ $serverName }} FAILED with the following error: +Docker Cleanup on {{ $name }} FAILED with the following error:
-{{ $message }}
+{{ $text }}
 
diff --git a/resources/views/emails/docker-cleanup-success.blade.php b/resources/views/emails/docker-cleanup-success.blade.php index 943750456..8671d74c8 100644 --- a/resources/views/emails/docker-cleanup-success.blade.php +++ b/resources/views/emails/docker-cleanup-success.blade.php @@ -1,8 +1,9 @@ -Docker Cleanup on "{{ $serverName }}" succeeded with the following message: +Docker Cleanup on {{ $name }} succeeded with the following message: +
-"{{ $message }}"
+{{ $text }}
 
-
\ No newline at end of file + diff --git a/resources/views/livewire/notifications/email.blade.php b/resources/views/livewire/notifications/email.blade.php index 37bfac0e0..5b998975d 100644 --- a/resources/views/livewire/notifications/email.blade.php +++ b/resources/views/livewire/notifications/email.blade.php @@ -142,14 +142,12 @@

Server

- - - + + +