fa815602bbac262a6e07ac577e40558abcf93144
max
  Tue Oct 15 04:53:53 2024 -0700
suppress download link for protected tracks, refs #34629

diff --git src/hg/hgTables/hgTables.h src/hg/hgTables/hgTables.h
index e9f4a50..199011e 100644
--- src/hg/hgTables/hgTables.h
+++ src/hg/hgTables/hgTables.h
@@ -78,33 +78,36 @@
 
 char *getScriptName();
 /* returns script name from environment or hardcoded for command line */
 
 void printTrackHtml(struct trackDb *tdb);
 /* If trackDb has html for table, print it out in a new section. */
 
 /* ---------- Other UI stuff. ----------------------*/
 
 boolean varOn(char *var);
 /* Return TRUE if variable exists and is set. */
 
 void printMainHelp();
 /* Put up main page help info. */
 
-void printDownloadLink(char *typeLabel, char *fileName);
+void printDownloadLink(char *typeLabel, struct trackDb *tdb, char *fileName);
 /* print a link to the file, so the user can download it right here */
 
+void printNoGenomeWarning(struct trackDb *curTrack);
+/* print a message box that explains why a track is not downloadable */
+
 boolean printTypeHelpDesc(char *fileType);
 /* print a little link to our help docs given a file type. Return true if file type is a big* file format. */
 
 struct grp *showGroupField(char *groupVar, char *event, char *groupScript,
     struct sqlConnection *conn, boolean allTablesOk);
 /* Show group control. Returns selected group. */
 
 struct trackDb *showTrackField(struct grp *selGroup, char *trackVar, char *event, char *trackScript,
                                boolean disableNoGenome);
 /* Show track control. Returns selected track. */
 
 char *showTableField(struct trackDb *track, char *varName, boolean useJoiner);
 /* Show table control and label. */
 
 struct slName *getDbListForGenome();