src/hg/lib/web.c 1.159

1.159 2009/03/12 17:38:30 fanhsu
Disable TB for CGB servers.
Index: src/hg/lib/web.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/web.c,v
retrieving revision 1.158
retrieving revision 1.159
diff -b -B -U 4 -r1.158 -r1.159
--- src/hg/lib/web.c	13 Feb 2009 02:38:27 -0000	1.158
+++ src/hg/lib/web.c	12 Mar 2009 17:38:30 -0000	1.159
@@ -301,9 +301,10 @@
 	printf("       <A HREF=\"../cgi-bin/hgTables%s%shgta_doMainPage=1\" "
 	       "class=\"topbar\">\n",
 	       uiState, theCart ? "&" : "?" );
     }
-    if (!isGsid) puts("           Tables</A> &nbsp;&nbsp;&nbsp;");
+    /* disable TB for both GSID and CGB servers */
+    if (!isGsid && !hIsCgbServer()) puts("           Tables</A> &nbsp;&nbsp;&nbsp;");
     if (!endsWith(scriptName, "hgNear")) 
     /*  possible to make this conditional: if (db != NULL && hgNearOk(db))	*/
         if (db != NULL && hgNearOk(db))
 	{