Skip to content

Commit fbe2531

Browse files
MytsVmaany
authored andcommitted
Make the experiment icon in the navigation bar lead to PROJECT_URL from environmental variables
1 parent 56aedf1 commit fbe2531

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/app/(rucio)/rucio-app-layout.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ export const RucioAppLayout = (props: QueryContextLayoutProps) => {
3939
siteHeaderViewModel.availableAccounts?.map((user: User) => {
4040
return user.rucioAccount;
4141
}) ?? [],
42-
rucioProjectLink: 'rucio.cern.ch',
43-
experimentProjectLink: 'atlas.cern',
42+
rucioProjectLink: 'https://rucio.cern.ch',
43+
experimentProjectLink: process.env.PROJECT_URL,
4444
}}
4545
>
4646
{props.children}

src/component-library/pages/legacy/Layout/Layout.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export interface LayoutViewModel {
1515
accountActive: string;
1616
accountsPossible: string[];
1717
rucioProjectLink: string;
18-
experimentProjectLink: string;
18+
experimentProjectLink?: string;
1919
}
2020

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

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

0 commit comments

Comments
 (0)