7c0f858f25aac46cc49fbdb588a24ee9baeb8da3 tdreszer Wed Aug 17 15:41:37 2011 -0700 dateUnrestricted should no longer be calculated off of dateSubmitted. It should also no longer be seen in hgc or hgTables when it is in the past. diff --git src/hg/inc/hui.h src/hg/inc/hui.h index 4c8ce4c..a5aea1c 100644 --- src/hg/inc/hui.h +++ src/hg/inc/hui.h @@ -22,33 +22,34 @@ char *wrapWhiteFont(char *s); /* Write white font around s */ #define HELP_DIR "/goldenPath/help" /* will be appended to DOCUMENT_ROOT */ #define DOCUMENT_ROOT "/usr/local/apache/htdocs" /* default DocumentRoot as configured in Apache httpd.conf */ /* DocumentRoot can be set in hg.conf as browser.documentRoot */ #define DEFAULT_BACKGROUND "../images/floret.jpg" /* full path is determined by Apache's DocumentRoot since this is a * relative URL reference */ #define ENCODE_DATA_RELEASE_POLICY "/ENCODE/terms.html" -char *encodeRestrictionDateDisplay(char *db,struct trackDb *trackDb); +char *encodeRestrictionDate(char *db,struct trackDb *trackDb,boolean excludePast); /* Create a string for ENCODE restriction date of this track if return is not null, then free it after use */ +#define encodeRestrictionDateDisplay(db,tdb) encodeRestrictionDate(db,tdb,TRUE) char *hDocumentRoot(); /* get the path to the DocumentRoot, or the default */ char *hHelpFile(char *fileRoot); /* Given a help file root name (e.g. "hgPcrResult" or "cutters"), * prepend the complete help directory path and add .html suffix. * Do not free the statically allocated result. */ char *hFileContentsOrWarning(char *file); /* Return the contents of the html file, or a warning message. * The file path may begin with hDocumentRoot(); if it doesn't, it is * assumed to be relative and hDocumentRoot() will be prepended. */ char *hCgiRoot();