Skip to content

Commit b9138c9

Browse files
authored
Update Homepage text (webui)
* Update warning message for demo instances * Create conditional message based on the "site_function" variable ISSUE: CSCEUDAT-1387
1 parent 7b7a1ac commit b9138c9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

webui/src/components/home.jsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,30 @@ export const HomeRoute = React.createClass({
1010
const latestRecords = serverCache.getLatestRecords();
1111
const user = serverCache.getUser();
1212
const info = serverCache.getInfo();
13+
const site_function = info.get('site_function');
1314
const b2access = info.get('b2access_registration_link');
1415
const training_site = info.get('training_site_link');
16+
const divStyle = {
17+
color: 'red',
18+
};
1519
return (
1620
<div className="container-fluid home-page">
1721
<div className="row">
1822
<div className="col-sm-12">
1923
<div style={{margin:'2em 0', textAlign: 'center'}}>
24+
{ (site_function == "" || site_function == "production") ?
25+
<div>
2026
<h3>Store and publish your research data</h3>
2127
<p>Search in public datasets or register as a user to upload and publish your data!</p>
28+
</div>
29+
:
30+
<div>
31+
<h3 style={divStyle} >Attention: This is not a production instance!</h3>
32+
<p style={divStyle}>Please refrain from storing or publishing your real research data here.</p>
33+
<p >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!</p>
34+
<p >Use a production service provided by your institution or EUDAT for real research data.</p>
35+
</div>
36+
}
2237
{ training_site ?
2338
<p>Please use <a href={training_site}>{training_site}</a> for testing or training.</p>
2439
: false }

0 commit comments

Comments
 (0)