ca709fce58415c5e5d8b83717c61a3821d2968dc max Tue Aug 13 06:53:10 2024 -0700 fix some weird html in hgTracks, refs #34256 diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index 79e08f0..752f54a 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -9516,41 +9516,48 @@ "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)) { char *hubName = hubNameFromGroupName(group->name); struct trackHub *hub = grabHashedHub(hubName); // visibility: hidden means that the element takes up space so the center alignment is not disturbed. if (hub != NULL) { if (hub->descriptionUrl == NULL) - hPrintf("<span title='The track hub authors have not 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> "); + { + hPrintf("<a title='The track hub authors have not provided a descriptionUrl with background " + "information about this track hub. "); + if (hub->email) + hPrintf("The authors can be reached at %s. ", hub->email); + hPrintf("This link leads to our documentation page about the descriptionUrl statement in hub.txt. "); + hPrintf("' href='../goldenPath/help/hgTrackHubHelp.html#hub.txt' " + "style='color:#FFF; font-size: 13px;' target=_blank>No Info</a>"); + } else { hPrintf("<a title='Link to documentation about this track hub, provided by the track hub authors (not UCSC). "); if (hub->email) hPrintf("The authors can be reached at %s", hub->email); hPrintf("' href='%s' " - "style='color:#FFF; font-size: 13px;' target=_blank>Info</a> ", hub->descriptionUrl); + "style='color:#FFF; font-size: 13px;' target=_blank>Info</a>", hub->descriptionUrl); } + hPrintf(" "); } safef(idText, sizeof idText, "%s_%d_disconn", hubName, disconCount); disconCount++; 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;", hubName + strlen(hubTrackPrefix)); } hPrintf("<input type='submit' name='hgt.refresh' value='Refresh' " "title='Update image with your changes'>\n"); hPrintf("</td></tr></table></th>\n");