diff --git a/app/GrassrootsGrantsHub.php b/app/GrassrootsGrantsHub.php index a8bbfd3ff..52dc0e80b 100644 --- a/app/GrassrootsGrantsHub.php +++ b/app/GrassrootsGrantsHub.php @@ -65,4 +65,29 @@ public function isStatusOnly(): bool { return in_array($this->hub_status, ['not_launched', 'cancelled'], true); } + + public function statusLabel(): ?string + { + return match ($this->hub_status) { + 'not_launched' => 'Call not launched', + 'cancelled' => 'Cancelled due to low number of applications', + default => null, + }; + } + + public function statusBodyHtml(): string + { + $message = trim(strip_tags((string) ($this->status_message ?? ''), '