93b40c3a4accc13b3dd7f2f72c6abd4bd46d4736 kate Mon Oct 8 16:05:03 2012 -0700 Add Contacts link to top of hgTrackUi and hgFileUi ENCODE pages, to encourage users to contact labs directly diff --git src/hg/hgTrackUi/hgTrackUi.c src/hg/hgTrackUi/hgTrackUi.c index 6702302..1426c6f 100644 --- src/hg/hgTrackUi/hgTrackUi.c +++ src/hg/hgTrackUi/hgTrackUi.c @@ -2953,30 +2953,35 @@ printf("\n  "); } } if (!tdbIsSuperTrack(tdb) && !tdbIsComposite(tdb)) puts("
"); if (tdbIsDownloadsOnly(tdb)) // Composites without tracks but with files to download filesDownloadUi(database,cart,tdb); // are tdb->type: downloadsOnly else specificUi(tdb, tdbList, ct, ajax); puts(""); if (ajax) return; @@ -3016,31 +3021,38 @@ if (tdb->html != NULL && tdb->html[0] != 0) { char *browserVersion; if (btIE == cgiClientBrowser(&browserVersion, NULL, NULL) && *browserVersion < '8') htmlHorizontalLine(); else // Move line down, since

Description (in ->html) is proceded by too much space printf("
"); printf("
"); puts(""); // include anchor for Description link // Add pennantIcon printPennantIconNote(tdb); - puts(tdb->html); + char *html = tdb->html; + if (trackDbSetting(tdb, "wgEncode")) + { + // add anchor to Credits section of ENCODE HTML page so lab contacts are easily found (on top menu) + html = replaceChars(tdb->html, "2>Credits", "2>\n

Credits

"); + } + puts(html); + printf("
"); cgiDown(0.7); // positions top link below line makeTopLink(tdb); printf(" 
"); makeTopLink(tdb); printf(" 
"); } } /* void trackUi(struct trackDb *tdb) */ struct trackDb *trackDbForPseudoTrack(char *tableName, char *shortLabel, char *longLabel, int defaultVis, boolean canPack) /* Create trackDb for a track without a corresponding table. */ { struct trackDb *tdb;