Skip to content

Commit

Permalink
feat: display session details in session page Renku 2.0 (#3258)
Browse files Browse the repository at this point in the history
fix #3281 
fix #3282
  • Loading branch information
andre-code authored Aug 26, 2024
1 parent 2011315 commit fce2c93
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 fce2c93

Please sign in to comment.