Update each_file.tpl

Repairing bug that does not show icons for files.
This commit is contained in:
Florin-Ciprian Bodin
2023-09-01 00:57:29 +03:00
committed by GitHub
parent 0ca191ede0
commit 97fd63ee38

View File

@@ -5,21 +5,30 @@
<td class="row1 table1 autoindex_td">
{file:if:is_file} /* if it is a file, make a direct link */
<a class="autoindex_a" href="{file:parent_dir}{file:filename}">{file:filename}</a>
{end if} {file:thumbnail}
<a class="autoindex_a" href="{file:parent_dir}{file:filename}">
{end if}
{file:if:is_dir} /* otherwise, for directories, display the folder with autoindex */
<a class="autoindex_a" href="{file:link}">
{if:icon_path}<img width="32" height="32" alt="[{file:file_ext}]" src="{file:icon}" />{end if:icon_path} {file:filename}
</a>
{end if} {file:new_icon}{file:md5_link}{file:delete_link}{file:rename_link}{file:edit_description_link}{file:ftp_upload_link}
</td>
{if:download_count}<td class="row2 table1 topicdetails autoindex_td_right responsive-hide">{file:downloads}</td>{end if:download_count}
{end if}
{if:icon_path}<img width="32" height="32" alt="[{file:file_ext}]" src="{file:icon}" />{end if:icon_path}
{file:filename}
</a> {file:thumbnail}{file:new_icon}{file:md5_link}{file:delete_link}{file:rename_link}{file:edit_description_link}{file:ftp_upload_link}
</td>
{if:download_count}
<td class="row2 table1 topicdetails autoindex_td_right responsive-hide">
{file:downloads}
</td>
{end if:download_count}
<td class="row2 table1 topicdetails autoindex_td_right responsive-hide">
{file:size}
</td>
</td>
<td class="row2 table1 topicdetails autoindex_td_right responsive-show">
{file:date}
</td>
</td>
{if:description_file}
<td class="row2 table1 topicdetails autoindex_td">
{file:description}