From cad95068f59b3525dbeb890985da31b3b92b84b7 Mon Sep 17 00:00:00 2001 From: Brandon Wilson Date: Thu, 1 Aug 2024 10:13:07 -0500 Subject: [PATCH] chore(astro): split out app status --- .../codius-astro/src/pages/apps/[id].astro | 113 +++++++++--------- 1 file changed, 54 insertions(+), 59 deletions(-) diff --git a/packages/codius-astro/src/pages/apps/[id].astro b/packages/codius-astro/src/pages/apps/[id].astro index 8e691b8..802fdf4 100644 --- a/packages/codius-astro/src/pages/apps/[id].astro +++ b/packages/codius-astro/src/pages/apps/[id].astro @@ -49,6 +49,39 @@ if (app.status !== "deployed" && !userIsDeployer) { > + { + userIsDeployer && ( +
+ + + {app.deletedAt ? "deleted" : app.status} + + + {app.githubWorkflowRunId && app.githubWorkflowJobId && ( + + )} +
+ ) + }
) } - { - userIsDeployer && ( - - - {app.deletedAt ? "deleted" : app.status} - - - ) - } + { + app.deletedAt === null && userIsDeployer && ( +
+ +
+ ) + }
-
-
-
- -
- -
- { - app.githubWorkflowRunId && - app.githubWorkflowJobId && - userIsDeployer && (
- ) - } - { - app.deletedAt === null && userIsDeployer && ( -
-
- ) - } + +