This repository was archived by the owner on Aug 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +23
-20
lines changed
frontend/components/home/helmholtz Expand file tree Collapse file tree 2 files changed +23
-20
lines changed Original file line number Diff line number Diff line change 1- // SPDX-FileCopyrightText: 2022 Christian Meeßen (GFZ) <[email protected] > 2- // SPDX-FileCopyrightText: 2022 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences
1+ // SPDX-FileCopyrightText: 2022 - 2023 Christian Meeßen (GFZ) <[email protected] > 2+ // SPDX-FileCopyrightText: 2022 - 2023 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences
33// SPDX-FileCopyrightText: 2022 Marc Hanisch (GFZ) <[email protected] > 44//
55// SPDX-License-Identifier: EUPL-1.2
@@ -22,22 +22,25 @@ export default function HorizontalScrollContainer(
2222 >
2323 {
2424 organisations . map ( item => {
25- return (
26- < Link
27- key = { `link_${ item . name } ` }
28- href = { `/organisations/${ item . rsd_path } ` }
29- passHref
30- >
31- < img
32- alt = { item . name }
33- src = { getImageUrl ( item . logo_id ) ?? undefined }
34- className = "p-10 hover:cursor-pointer max-w-none w-auto"
35- style = { {
36- height : '200px' ,
37- } }
38- />
39- </ Link >
40- )
25+ const imageUrl = getImageUrl ( item . logo_id )
26+ if ( imageUrl !== null ) {
27+ return (
28+ < Link
29+ key = { `link_${ item . name } ` }
30+ href = { `/organisations/${ item . rsd_path } ` }
31+ passHref
32+ >
33+ < img
34+ alt = { item . name }
35+ src = { imageUrl }
36+ className = "p-10 hover:cursor-pointer max-w-none w-auto"
37+ style = { {
38+ height : '200px' ,
39+ } }
40+ />
41+ </ Link >
42+ )
43+ }
4144 } )
4245 }
4346 </ div >
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export default function Home() {
6969
7070 useEffect ( ( ) => {
7171 async function getData ( ) {
72- const url = '/api/v1/rpc/organisations_overview?parent=is.null&software_cnt=gt.0'
72+ const url = '/api/v1/rpc/organisations_overview?parent=is.null&software_cnt=gt.0&is_tenant=eq.true '
7373 const data = await getOrganisationsList ( { url} )
7474 setOrganisations ( data )
7575 }
@@ -220,7 +220,7 @@ export default function Home() {
220220 < h2 className = "text-5xl pb-2" > Contributions</ h2 >
221221 < div className = 'text-2xl' > We present software contributions by</ div >
222222 < ParticipatingOrganisations organisations = { organisations } sbRef = { simplebarRef } />
223- < div className = 'text-xl pt-2' > Your organisation is not in the list? We will open the RSD for self service soon. Stay tuned .</ div >
223+ < div className = 'text-xl pt-2' > Your organisation is not on the list? < a onClick = { handleClickAddSoftware } className = "underline" > Add your software </ a > now .</ div >
224224 </ div >
225225 </ div >
226226 }
You can’t perform that action at this time.
0 commit comments