485aa503a6d4d83d6aee39332a66e73acac76022
angie
  Mon Apr 25 13:29:08 2016 -0700
Thanks Brian for noticing that the hgwdev warning was missing from the new hgGateway & Cath for suggesting the wording.  refs #15277 (notes 192-196).

diff --git src/hg/hgGateway/hgGateway.c src/hg/hgGateway/hgGateway.c
index 9911378..d9101d1 100644
--- src/hg/hgGateway/hgGateway.c
+++ src/hg/hgGateway/hgGateway.c
@@ -264,30 +264,64 @@
 static void doMainPage()
 /* Send HTML with javascript to bootstrap the user interface. */
 {
 // Start web page with new banner
 char *db = NULL, *genome = NULL, *clade = NULL;
 getDbGenomeClade(cart, &db, &genome, &clade, oldVars);
 // If CGI has &lastDbPos=..., handle that here and save position to cart so it's in place for
 // future cartJson calls.
 char *position = cartGetPosition(cart, db, NULL);
 cartSetString(cart, "position", position);
 webStartJWest(cart, db, "Genome Browser Gateway");
 
 if (cgiIsOnWeb())
     checkForGeoMirrorRedirect(cart);
 
+#define WARNING_BOX_START "<div id=\"previewWarningRow\" class=\"jwRow\">" \
+         "<div id=\"previewWarningBox\" class=\"jwWarningBox\">"
+
+#define UNDER_DEV "Data and tools on this site are under development, have not been reviewed " \
+         "for quality, and are subject to change at any time. "
+
+#define MAIN_SITE "The high-quality, reviewed public site of the UCSC Genome Browser is " \
+         "available for use at <a href=\"http://genome.ucsc.edu/\">http://genome.ucsc.edu/</a>."
+
+#define WARNING_BOX_END "</div></div>"
+
+if (hIsPreviewHost())
+    {
+    puts(WARNING_BOX_START
+         "WARNING: This is the UCSC Genome Browser preview site. "
+         "This website is a weekly mirror of our internal development server for public access. "
+         UNDER_DEV
+         "We provide this site for early access, with the warning that it is less available "
+         "and stable than our public site. "
+         MAIN_SITE
+         WARNING_BOX_END);
+    }
+
+if (hIsPrivateHost())
+    {
+    puts(WARNING_BOX_START
+         "WARNING: This is the UCSC Genome Browser development site. "
+         "This website is used for testing purposes only and is not intended for general public "
+         "use. "
+         UNDER_DEV
+         MAIN_SITE
+         WARNING_BOX_END);
+    }
+
 // The visible page elements are all in ./hgGateway.html, which is transformed into a quoted .h
 // file containing a string constant that we #include and print here (see makefile).
 puts(
 #include "hgGateway.html.h"
 );
 
 // Set global JS variables hgsid and activeGenomes
 // We can't just use "var hgsid = " or the other scripts won't see it -- it has to be
 // "window.hgsid = ".
 puts("<script>");
 printf("window.%s = '%s';\n", cartSessionVarName(), cartSessionId(cart));
 puts("window.activeGenomes =");
 printActiveGenomes();
 puts(";");
 puts("</script>");