File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,30 @@ export const HomeRoute = React.createClass({
10
10
const latestRecords = serverCache . getLatestRecords ( ) ;
11
11
const user = serverCache . getUser ( ) ;
12
12
const info = serverCache . getInfo ( ) ;
13
+ const site_function = info . get ( 'site_function' ) ;
13
14
const b2access = info . get ( 'b2access_registration_link' ) ;
14
15
const training_site = info . get ( 'training_site_link' ) ;
16
+ const divStyle = {
17
+ color : 'red' ,
18
+ } ;
15
19
return (
16
20
< div className = "container-fluid home-page" >
17
21
< div className = "row" >
18
22
< div className = "col-sm-12" >
19
23
< div style = { { margin :'2em 0' , textAlign : 'center' } } >
24
+ { ( site_function == "" || site_function == "production" ) ?
25
+ < div >
20
26
< h3 > Store and publish your research data</ h3 >
21
27
< 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
+ }
22
37
{ training_site ?
23
38
< p > Please use < a href = { training_site } > { training_site } </ a > for testing or training.</ p >
24
39
: false }
You can’t perform that action at this time.
0 commit comments