9163bbc2e39ec26d12c8a90bb26e365792f60670 ceisenhart Sun Jan 11 17:15:33 2015 -0800 Added a 'data last updated' tag to table display after 'Row Count' and before 'Format description' diff --git src/hg/hgTables/bigBed.c src/hg/hgTables/bigBed.c index ea0ad03..7526c0a 100644 --- src/hg/hgTables/bigBed.c +++ src/hg/hgTables/bigBed.c @@ -349,31 +349,34 @@ { /* Figure out bigBed file name and open it. Get contents for first chromosome as an example. */ struct sqlConnection *conn = NULL; if (!trackHubDatabase(database)) conn = hAllocConn(database); char *fileName = bigBedFileName(table, conn); struct bbiFile *bbi = bigBedFileOpen(fileName); struct bbiChromInfo *chromList = bbiChromList(bbi); struct lm *lm = lmInit(0); struct bigBedInterval *ivList = getNElements(bbi, chromList, lm, 10); /* Get description of columns, making it up from BED records if need be. */ struct asObject *as = bigBedAsOrDefault(bbi); hPrintf("Database: %s", database); -hPrintf("    Primary Table: %s
", table); +hPrintf("    Primary Table: %s", table); +char *date = firstWordInLine(sqlTableUpdate(conn, table)); +if (date != NULL) + printf("   Data last updated: %s
\n", date); hPrintf("Big Bed File: %s", fileName); if (bbi->version >= 2) { hPrintf("
Item Count: "); printLongWithCommas(stdout, bigBedItemCount(bbi)); } hPrintf("
\n"); hPrintf("Format description: %s
", as->comment); /* Put up table that describes fields. */ hTableStart(); hPrintf("field"); if (ivList != NULL) hPrintf("example"); hPrintf("description ");