209345a2fed48b1cc3a8dac176ee3ea64f74e7b5 tdreszer Mon Aug 9 13:39:44 2010 -0700 Adding Nav links to composites with matrix diff --git src/hg/hgTrackUi/hgTrackUi.c src/hg/hgTrackUi/hgTrackUi.c index aaa058f..d86bbc6 100644 --- src/hg/hgTrackUi/hgTrackUi.c +++ src/hg/hgTrackUi/hgTrackUi.c @@ -2447,32 +2447,19 @@ printf("
\n\n", hgTracksName(), cartUsualString(cart, "formMethod", "POST")); cartSaveSession(cart); -#ifdef BIG_UI_NAV_LINKS printf("%s%s\n", tdb->longLabel, tdbIsSuper(tdb) ? " Tracks" : ""); -#else///ifndef BIG_UI_NAV_LINKS -if(ajax) - printf("

%s%s

\n", tdb->longLabel, tdbIsSuper(tdb) ? " Tracks" : ""); -else - printf("

%s%s

\n", tdb->longLabel, tdbIsSuper(tdb) ? " Tracks" : ""); -#endif///ndef BIG_UI_NAV_LINKS /* Print link for parent track */ struct trackDb *parentTdb = tdb->parent; if (parentTdb) { char *encodedMapName = cgiEncode(parentTdb->track); -#ifdef BIG_UI_NAV_LINKS printf("  (%s)", -#else///ifndef BIG_UI_NAV_LINKS - printf("

Parent track: %s

", -#endif///ndef BIG_UI_NAV_LINKS hgTrackUiName(), cartSessionVarName(), cartSessionId(cart), chromosome, encodedMapName, parentTdb->shortLabel); freeMem(encodedMapName); } -#ifdef BIG_UI_NAV_LINKS puts("

"); -#endif///def BIG_UI_NAV_LINKS if (ct && sameString(tdb->type, "maf")) tdb->canPack = TRUE; @@ -2499,10 +2486,8 @@ printf(" "); cgiMakeButton("Submit", "Submit"); -//#ifndef BIG_UI_NAV_LINKS if(tdbIsComposite(tdb)) printf("\n  Reset to defaults\n",setting); -//#endif///ndef BIG_UI_NAV_LINKS if (ct) { @@ -2515,7 +2500,6 @@ "Update custom track"); } -#ifdef BIG_UI_NAV_LINKS if (!tdbIsSuper(tdb)) { // NAVLINKS - For pages w/ matrix, add Description, Subtracks and Downloads links @@ -2535,10 +2519,7 @@ printf("  Description%s",downArrow); printf(" "); } - //if(tdbIsComposite(tdb)) - // printf("\n  
\n",setting); } -#endif///ndef BIG_UI_NAV_LINKS printf("
\n"); specificUi(tdb, ct); @@ -2581,19 +2562,15 @@ if (tdb->html != NULL && tdb->html[0] != 0) { htmlHorizontalLine(); - #ifdef BIG_UI_NAV_LINKS // include anchor for Description link puts(""); printf("
"); - #endif///def BIG_UI_NAV_LINKS puts(tdb->html); - #ifdef BIG_UI_NAV_LINKS printf(""); makeTopLink(tdb); printf(" 
"); makeTopLink(tdb); printf(" 
"); - #endif///def BIG_UI_NAV_LINKS } } /* void trackUi(struct trackDb *tdb) */