@@ -1970,6 +1970,7 @@ def download_list_html(
19701970 send_icon : str = "envelope" ,
19711971 zip_label : Optional [str ] = None ,
19721972 zip_icon : str = "file-archive" ,
1973+ zip_row_label : Optional [str ] = "" ,
19731974 append_matching_suffix : bool = True ,
19741975 include_email : bool = False ,
19751976 use_previously_cached_files : bool = False ,
@@ -1994,6 +1995,8 @@ def download_list_html(
19941995 send_icon (str): Fontawesome icon for the 'send' button. Default is "envelope".
19951996 zip_label (Optional[str]): Label for the zip option. If not provided, uses the generic template for `self.zip_label` ("Download all").
19961997 zip_icon (str): Icon for the zip option, default is "file-archive".
1998+ zip_row_label (str, optional): Text to go in the left-most column
1999+ of the table's zip row. Will default to the value of `self.title`.
19972000 append_matching_suffix (bool): Flag to determine if matching suffix should be appended to file name, default is True.
19982001 include_email (bool): Flag to include an option, default is False.
19992002 use_previously_cached_files (bool): Flag to use previously cached files (e.g., made in background) if defined. default is False.
@@ -2086,7 +2089,10 @@ def download_list_html(
20862089 size = "md" ,
20872090 classname = "al_zip al_button" ,
20882091 )
2089- html += table_row (zip_label , zip_button )
2092+ safe_zip_row_label : str = (
2093+ zip_row_label or (hasattr (self , "title" ) and self .title ) or zip_label
2094+ )
2095+ html += table_row (safe_zip_row_label , zip_button )
20902096
20912097 if include_full_pdf and bundled_pdf :
20922098 if not full_pdf_label :
0 commit comments