6ce1087262245e3d2d46198ac237d0d04126e1a3
max
Tue Sep 21 04:50:49 2021 -0700
removing duplicated font-awesome integration into hgTracks, adding
folder icon as a tag without a font dependency, removing link
from the icon, and adding the icon to the config page, refs #28108
diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c
index 34c25de..74c60a8 100644
--- src/hg/hgTracks/hgTracks.c
+++ src/hg/hgTracks/hgTracks.c
@@ -8018,62 +8018,54 @@
isPressed = TRUE;
char buf[256];
safef(buf, sizeof buf, "configure %s multi-region display mode",
isPressed ? "or exit" : "");
hButtonNoSubmitMaybePressed("hgTracksConfigMultiRegionPage", "multi-region", buf,
"popUpHgt.hgTracks('multi-region config'); return false;", isPressed);
}
static void printTrackLink(struct track *track)
/* print a link hgTrackUi with shortLabel and various icons and mouseOvers */
{
if (track->hasUi)
{
char *url = trackUrl(track->track, chromName);
char *longLabel = replaceChars(track->longLabel, "\"", """);
- // Print an icon before the title when one is defined
- hPrintPennantIcon(track->tdb);
struct dyString *dsMouseOver = dyStringCreate("%s", longLabel);
struct trackDb *tdb = track->tdb;
if (tdbIsSuper(tdb))
- {
- dyStringPrintf(dsMouseOver, " - this is a container track with %d subtracks of different types (super track)",
- slCount(tdb->children));
- }
+ dyStringPrintf(dsMouseOver, " - this is a container track with %d subtracks of different types "
+ "(super track)", slCount(tdb->children));
else if (tdbIsComposite(tdb))
- {
- dyStringPrintf(dsMouseOver, " - this is a container track with %d subtracks of similar types (composite track)",
- slCount(tdb->subtracks));
- }
+ dyStringPrintf(dsMouseOver, " - this is a container track with %d subtracks of similar types "
+ "(composite track)", slCount(tdb->subtracks));
+
+ // Print icons before the title when any are defined
+ hPrintIcons(track->tdb);
hPrintf("", url, dyStringCannibalize(&dsMouseOver));
freeMem(url);
freeMem(longLabel);
}
-// show the folder icon from the font-awesome collection.
-// the icon collection also contains a "fa fa-folder-o" icon, which is the outline. It was decided to use only the filled out icon for now.
-if (tdbIsSuper(track->tdb) || tdbIsComposite(track->tdb))
- hPrintf("");
-
hPrintf("%s", track->shortLabel);
-hPrintf("
");
if (track->hasUi)
hPrintf("");
+hPrintf("
");
}
void printSearchHelpLink()
/* print the little search help link next to the go button */
{
char *url = cfgOption("searchHelpUrl");
char *label = cfgOptionDefault("searchHelpLabel", "Search Help");
if (!url)
return;
printf("