73b17c296d69511e0e36327a873652733cdbe2ea max Mon Apr 15 20:47:22 2024 -0700 adding back link with more info to track hub in blue bar, fixing stupid bug, #33458 diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index 21997e6..40cfe25 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -9461,35 +9461,40 @@ safef(idText, sizeof idText, "%s_edit", group->name); hPrintf("<input name=\"hubEditButton\" id='%s'" " type=\"button\" value=\"edit\">\n", idText); jsOnEventByIdF("click", idText, "document.editHubForm.submit();return true;"); } } hPrintf("</td><td style='text-align:center; width:90%%;'>\n<B>%s</B>", group->label); hPrintf("</td><td style='text-align:right;'>\n"); if (isHubTrack(group->name)) { struct trackHub *hub = grabHashedHub(group->name); // visibility: hidden means that the element takes up space so the center alignment is not disturbed. - char *cssStr = ""; - if ((hub == NULL) || (hub->descriptionUrl == NULL)) - cssStr = "visibility: hidden"; - - hPrintf("<a href='%s' style='color:#FFF; %s' target=_blank>More Info</a> ", hub->descriptionUrl, cssStr); + if (hub != NULL) + { + if (hub->descriptionUrl == NULL) + hPrintf("<span title='The track hub authors have no provided a descriptionUrl with background " + "information about this track hub' href='../goldenPath/help/hgTrackHubHelp.html#hub.txt' " + "style='color:#FFF; font-size: 13px;' target=_blank>No Info</a> "); + else + hPrintf("<a title='Documentation about this track hub, provided by the track hub authors (not UCSC)' href='%s' " + "style='color:#FFF; font-size: 13px;' target=_blank>Info</a> ", hub->descriptionUrl); + } safef(idText, sizeof idText, "%s_disconn", group->name); hPrintf("<input name=\"hubDisconnectButton\" id='%s'" " type=\"button\" value=\"disconnect\">\n", idText); jsOnEventByIdF("click", idText, "document.disconnectHubForm.elements['hubId'].value='%s';" "document.disconnectHubForm.submit();return true;", group->name + strlen(hubTrackPrefix)); } hPrintf("<input type='submit' name='hgt.refresh' value='refresh' " "title='Update image with your changes'>\n"); hPrintf("</td></tr></table></th>\n"); controlGridEndRow(cg);