ec4568d14f455627aa84b614bafb82b03a2edc8a
tdreszer
Fri May 6 14:35:35 2011 -0700
Fixes to spacing issues on hgTrackUi and hgFileUi where navlinks and description page resulted in extra lines. Created subheadingBar div to replace one of the many nested tables and use CSS.
diff --git src/hg/hgTrackUi/hgTrackUi.c src/hg/hgTrackUi/hgTrackUi.c
index d2179a2..fb6c635 100644
--- src/hg/hgTrackUi/hgTrackUi.c
+++ src/hg/hgTrackUi/hgTrackUi.c
@@ -2840,57 +2840,56 @@
puts("\n");
if (ct->bbiFile)
{
time_t timep = bbiUpdateTime(ct->bbiFile);
printBbiUpdateTime(&timep);
}
else
printUpdateTime(CUSTOM_TRASH, ct->tdb, ct);
}
if (!ct)
{
/* Print data version trackDB setting, if any */
char *version = trackDbSetting(tdb, "dataVersion");
if (version)
- printf("Data version: %s
\n", version);
+ printf("
Data version: %s\n", version);
/* Print lift information from trackDb, if any */
trackDbPrintOrigAssembly(tdb, database);
printUpdateTime(database, tdb, NULL);
}
if (tdb->html != NULL && tdb->html[0] != 0)
{
- htmlHorizontalLine();
- puts("");
-
- // include anchor for Description link
char *browserVersion;
if (btIE == cgiClientBrowser(&browserVersion, NULL, NULL) && *browserVersion < '8')
- printf("");
- else
- printf("");
+ htmlHorizontalLine();
+ else // Move line down, since Description (in ->html) is proceded by too much space
+ printf(" ");
+
+ printf("");
+ puts(""); // include anchor for Description link
// Add pennantIcon
printPennantIconNote(tdb);
puts(tdb->html);
- printf(" | ");
+ printf(" | "); // positions top link below line
makeTopLink(tdb);
- printf("  | ");
+ printf("  | ");
makeTopLink(tdb);
printf("  | ");
}
} /* void trackUi(struct trackDb *tdb) */
struct trackDb *trackDbForPseudoTrack(char *tableName, char *shortLabel,
char *longLabel, int defaultVis, boolean canPack)
/* Create trackDb for a track without a corresponding table. */
{
struct trackDb *tdb;
AllocVar(tdb);
tdb->track = tableName;
tdb->table = tableName;
tdb->shortLabel = shortLabel;
|
|