33b21a1f81a7f5cc388f780fabdf48d315014ea9 tdreszer Fri Jul 30 13:02:38 2010 -0700 Checked in Kate's navigation links, slightly modified. Feature is ifdef'd out currently diff --git src/hg/hgTrackUi/hgTrackUi.c src/hg/hgTrackUi/hgTrackUi.c index 8714df0..02b8142 100644 --- src/hg/hgTrackUi/hgTrackUi.c +++ src/hg/hgTrackUi/hgTrackUi.c @@ -2419,6 +2419,8 @@ /* Put up track-specific user interface. */ { jsIncludeFile("jquery.js", NULL); +printf("\n"); +jsIncludeFile("jquery-ui.js", NULL); jsIncludeFile("utils.js",NULL); #define RESET_TO_DEFAULTS "defaults" char setting[128]; @@ -2437,18 +2439,29 @@ 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 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; @@ -2475,10 +2488,10 @@ 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) { @@ -2490,6 +2503,32 @@ cgiMakeOnClickButton("document.customTrackForm.submit();return false;", "Update custom track"); } + +#ifdef BIG_UI_NAV_LINKS +if (!tdbIsSuper(tdb)) + { + // NAVLINKS - For pages w/ matrix, add Description, Subtracks and Downloads links + if (trackDbSetting(tdb, "dimensions")) + { + printf("\n  "); + } + //if(tdbIsComposite(tdb)) + // printf("\n  
\n",setting); + } +#endif///ndef BIG_UI_NAV_LINKS printf("
\n"); specificUi(tdb, ct); @@ -2528,7 +2567,19 @@ 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) */