Skip to content

Commit

Permalink
Make the experiment icon in the navigation bar lead to PROJECT_URL fr…
Browse files Browse the repository at this point in the history
…om environmental variables
  • Loading branch information
MytsV authored and maany committed Oct 18, 2024
1 parent 56aedf1 commit fbe2531
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app/(rucio)/rucio-app-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export const RucioAppLayout = (props: QueryContextLayoutProps) => {
siteHeaderViewModel.availableAccounts?.map((user: User) => {
return user.rucioAccount;
}) ?? [],
rucioProjectLink: 'rucio.cern.ch',
experimentProjectLink: 'atlas.cern',
rucioProjectLink: 'https://rucio.cern.ch',
experimentProjectLink: process.env.PROJECT_URL,
}}
>
{props.children}
Expand Down
6 changes: 3 additions & 3 deletions src/component-library/pages/legacy/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface LayoutViewModel {
accountActive: string;
accountsPossible: string[];
rucioProjectLink: string;
experimentProjectLink: string;
experimentProjectLink?: string;
}

export const Layout = (props: { children: React.ReactNode; LVM: LayoutViewModel }) => {
Expand Down Expand Up @@ -155,10 +155,10 @@ export const Layout = (props: { children: React.ReactNode; LVM: LayoutViewModel
</span>

<span className="flex flex-row space-x-1">
<a className="w-12 h-12" href={'//' + props.LVM.rucioProjectLink}>
<a className="w-12 h-12" href={props.LVM.rucioProjectLink}>
<Image src="/logocropped.svg" alt="Rucio Logo" width={43} height={43} />
</a>
<a className="w-12 h-12" href={'//' + props.LVM.experimentProjectLink}>
<a className="w-12 h-12" href={props.LVM.experimentProjectLink}>
<Image src="/experiment-logo.png" alt="Experiment Logo" width={53} height={53} />
</a>
</span>
Expand Down

0 comments on commit fbe2531

Please sign in to comment.