af6898753ba6d5f3872957cd270872ce4c4e3dfc
max
  Tue Apr 11 08:19:27 2023 -0700
tolerate if browser CSS theme files do not exist, cleaning up the resource link mess a little, refs #7867

diff --git src/hg/inc/web.h src/hg/inc/web.h
index a0167a5..bf3052e 100644
--- src/hg/inc/web.h
+++ src/hg/inc/web.h
@@ -328,32 +328,39 @@
 void webPrintLabelCellEnd();
 /* Print end of wrapper around a label in a table. */
 
 void webPrintLinkTableNewRow();
 /* start a new row */
 
 void webFinishPartialLinkTable(int rowIx, int itemPos, int maxPerRow);
 /* Fill out partially empty last row. */
 
 void webFinishPartialLinkOutTable(int rowIx, int itemPos, int maxPerRow);
 /* Fill out partially empty last row. */
 
 boolean validateGisaidUser(struct cart *cart);
 /* validate if the web user is an authenticated GISAID user */
 
+char *webCssLink(char *fileName, boolean mustExist);
+/* alternative for webTimeStampedLinkToResource for CSS files: prints a time-stamped
+ * link to a CSS file to stdout */
+
 char *webTimeStampedLinkToResource(char *fileName, boolean wrapInHtml);
-// Returns full path of timestamped link to the requested resource file (js, or css).
+// Consider using webCssLink instead of this function. Make new functions webJsLink(), webPngLink()
+// if not using CSS files.
+
+// Deprecated. Returns full path of timestamped link to the requested resource file (js, or css).
 // If wrapInHtml, then returns link embedded in style or script html. Free after use.
 // NOTE: png, jpg and gif should also be supported but are untested.
 
 char *webTimeStampedLinkToResourceOnFirstCall(char *fileName, boolean wrapInHtml);
 // If this is the first call, will Return full path of timestamped link to the
  // requested resource file (js, or css).  Free after use.
 // else returns NULL.  Useful to ensure multiple references to the same resource file are not made
 // NOTE: png, jpg and gif should also be supported but are untested.
 
 boolean webIncludeResourcePrintToFile(FILE * toFile, char *fileName);
 // Converts fileName to web Resource link and prints the html reference
 // This only prints and returns TRUE on first call for this resource.
 // Passing in NULL as the file pointer results in hPrintf call
 // The reference will be to a link with timestamp.
 #define webIncludeResourceFile(fileName)  webIncludeResourcePrintToFile(NULL,fileName)