0d08aac5b93f282011ff7a2e4bb9e95f722dc85e kate Wed Jun 22 16:32:58 2011 -0700 Cosmetics on ENCODE track UI diff --git src/hg/lib/hui.c src/hg/lib/hui.c index de419ff..df1a9b6 100644 --- src/hg/lib/hui.c +++ src/hg/lib/hui.c @@ -268,39 +268,40 @@ printf("<DIV id='div_%s_meta' style='display:none;'>%s</div>",tdb->track, metadataAsHtmlTable(db,tdb,showLongLabel,TRUE,trackHash) ); } else printf("<DIV id='div_%s_meta' style='display:none;'></div>",tdb->track); return TRUE; } void extraUiLinks(char *db,struct trackDb *tdb, struct hash *trackHash) /* Show downlaods, schema and metadata links where appropriate */ { if (trackDbSetting(tdb, "wgEncode") != NULL) { if (hIsPreviewHost()) { - printf("<P><B>WARNING</B>: This our ppreview site. Data here is unreviewed early access. For high quality reviewed annotations, see the <A TARGET=_BLANK HREF='http://%s/cgi-bin/hgTrackUi?db=%s&g=%s'>Genome Browser</A>.", - // TOD0: Add to supertrack as well ? Check if it exists ? + printf("<P><B>WARNING</B>: This data is provided for early access via the Preview Browser -- it is unreviewed and subject to change. For high quality reviewed annotations, see the <A TARGET=_BLANK HREF='http://%s/cgi-bin/hgTracks?db=%s'>Genome Browser</A>.", + "genome.ucsc.edu", db); } else { // TODO: use hTrackUiName() printf("<P><B>NOTE</B>: Early access to additional track data may be available on the <A TARGET=_BLANK HREF='http://%s/cgi-bin/hgTrackUi?db=%s&g=%s'>Preview Browser</A>.", "genome-preview.ucsc.edu", db, tdb->track); } + } boolean schemaLink = (!tdbIsDownloadsOnly(tdb) && isCustomTrack(tdb->table) == FALSE) && (hTableOrSplitExists(db, tdb->table)); boolean metadataLink = (!tdbIsComposite(tdb) && metadataForTable(db, tdb, NULL) != NULL); boolean downloadLink = (trackDbSetting(tdb, "wgEncode") != NULL && !tdbIsSuperTrack(tdb)); int links = 0; if (schemaLink) links++; if (metadataLink) links++; if (downloadLink) links++; if(links > 0)