From b9138c9fce32c40ba8c4cff91109546d5ee03a37 Mon Sep 17 00:00:00 2001 From: gek20 Date: Mon, 4 Mar 2024 08:03:34 +0200 Subject: [PATCH] Update Homepage text (webui) * Update warning message for demo instances * Create conditional message based on the "site_function" variable ISSUE: CSCEUDAT-1387 --- webui/src/components/home.jsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/webui/src/components/home.jsx b/webui/src/components/home.jsx index 0f6e3d319..0763946de 100644 --- a/webui/src/components/home.jsx +++ b/webui/src/components/home.jsx @@ -10,15 +10,30 @@ export const HomeRoute = React.createClass({ const latestRecords = serverCache.getLatestRecords(); const user = serverCache.getUser(); const info = serverCache.getInfo(); + const site_function = info.get('site_function'); const b2access = info.get('b2access_registration_link'); const training_site = info.get('training_site_link'); + const divStyle = { + color: 'red', + }; return (
+ { (site_function == "" || site_function == "production") ? +

Store and publish your research data

Search in public datasets or register as a user to upload and publish your data!

+
+ : +
+

Attention: This is not a production instance!

+

Please refrain from storing or publishing your real research data here.

+

You may use the service the for testing B2SHARE service, but note that any data or metadata on this instance may be deleted at any time!

+

Use a production service provided by your institution or EUDAT for real research data.

+
+ } { training_site ?

Please use {training_site} for testing or training.

: false }