From 97fd63ee386634b7f52d025e740adfc7ef24cc48 Mon Sep 17 00:00:00 2001 From: Florin-Ciprian Bodin Date: Fri, 1 Sep 2023 00:57:29 +0300 Subject: [PATCH] Update each_file.tpl Repairing bug that does not show icons for files. --- templates/SwiftBlue/each_file.tpl | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/templates/SwiftBlue/each_file.tpl b/templates/SwiftBlue/each_file.tpl index 4f1b705..11ba46f 100644 --- a/templates/SwiftBlue/each_file.tpl +++ b/templates/SwiftBlue/each_file.tpl @@ -5,21 +5,30 @@ {file:if:is_file} /* if it is a file, make a direct link */ - {file:filename} - {end if} {file:thumbnail} + + {end if} {file:if:is_dir} /* otherwise, for directories, display the folder with autoindex */ - {if:icon_path}[{file:file_ext}]{end if:icon_path} {file:filename} - - {end if} {file:new_icon}{file:md5_link}{file:delete_link}{file:rename_link}{file:edit_description_link}{file:ftp_upload_link} - - {if:download_count}{file:downloads}{end if:download_count} + {end if} + {if:icon_path}[{file:file_ext}]{end if:icon_path} + {file:filename} + {file:thumbnail}{file:new_icon}{file:md5_link}{file:delete_link}{file:rename_link}{file:edit_description_link}{file:ftp_upload_link} + + + {if:download_count} + + {file:downloads} + + {end if:download_count} + {file:size} - + + {file:date} - + + {if:description_file} {file:description}