link to build if click on image deployment header

This commit is contained in:
mbecker20
2023-03-27 15:30:11 +00:00
parent 21029c90b7
commit 699fc51cf7

View File

@@ -119,7 +119,18 @@ const Header: Component<{}> = (p) => {
/>
</Show>
</Show>
<div style={{ opacity: 0.7 }}>{image()}</div>
<Show
when={deployment().deployment.build_id}
fallback={<div style={{ opacity: 0.7 }}>{image()}</div>}
>
<A
href={`/build/${deployment().deployment.build_id}`}
class="text-hover"
style={{ opacity: 0.7, padding: 0 }}
>
{image()}
</A>
</Show>
</Flex>
<Show when={userCanUpdate()}>
<Flex alignItems="center">