mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-24 22:46:08 +02:00
Don't show zip download link for empty directories
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
</div>
|
||||
|
||||
<div class="flex justify-end items-center">
|
||||
{% if path and config('zip_downloads', true) %}
|
||||
{% if path and files is not empty and config('zip_downloads') %}
|
||||
<a href="{{ url(path, 'zip') }}" title="{{ translate('download') }}" class="inline-block text-white mx-2 p-1 hover:text-gray-400">
|
||||
<i class="fas fa-download fa-lg"></i>
|
||||
</a>
|
||||
|
Reference in New Issue
Block a user