Skip to content

Commit

Permalink
Merge branch 'main' into chore-update-renku-action-v1.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-cavazzi authored Aug 27, 2024
2 parents bb13111 + fce2c93 commit 3db26eb
Show file tree
Hide file tree
Showing 3 changed files with 226 additions and 56 deletions.
18 changes: 11 additions & 7 deletions client/src/components/Logs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,16 @@ const EnvironmentLogsPresent = ({
annotations
) as NotebookAnnotations;

const modalTitle = !cleanAnnotations.renkuVersion && (
<div className="fs-5 fw-normal">
<small>
{cleanAnnotations["namespace"]}/{cleanAnnotations["projectName"]} [
{cleanAnnotations["branch"]}@
{cleanAnnotations["commit-sha"].substring(0, 8)}]
</small>
</div>
);

return (
<Modal
isOpen={!!logs.show}
Expand All @@ -391,13 +401,7 @@ const EnvironmentLogsPresent = ({
}}
>
<div>Logs</div>
<div className="fs-5 fw-normal">
<small>
{cleanAnnotations["namespace"]}/{cleanAnnotations["projectName"]} [
{cleanAnnotations["branch"]}@
{cleanAnnotations["commit-sha"].substring(0, 8)}]
</small>
</div>
{modalTitle}
</ModalHeader>
<ModalBody>
<div className="mx-2">
Expand Down
Loading

0 comments on commit 3db26eb

Please sign in to comment.