Don't show zip download link for empty directories

This commit is contained in:
Chris Kankiewicz
2020-04-06 15:07:56 -07:00
parent b11eb83f8e
commit 97187d2c55

View File

@@ -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>