diff options
author | Simon L <szaimen@e.mail.de> | 2022-02-18 11:58:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-18 11:58:42 +0100 |
commit | ac007345e1b89b70a09c24add8d305f5582bccf6 (patch) | |
tree | 5719e04cf105e50e775d6cc5e94628802096da5d | |
parent | ee711ed66cdaed403e654dc78600477d1296e7f0 (diff) | |
parent | aa1c7ebbd333921538f50c7b8b35d80d29505389 (diff) | |
download | nextcloud-server-ac007345e1b89b70a09c24add8d305f5582bccf6.tar.gz nextcloud-server-ac007345e1b89b70a09c24add8d305f5582bccf6.zip |
Merge pull request #31169 from nextcloud/enh/noid/hide-download-button-for-images
hide download button for images
-rw-r--r-- | apps/files_sharing/templates/public.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 33dd6ecd189..889242fded1 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -77,10 +77,12 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size); <div> <?php p($_['filename'])?> (<?php p($_['fileSize']) ?>) </div> - <a href="<?php p($_['downloadURL']); ?>" id="downloadFile" class="button"> - <span class="icon icon-download"></span> - <?php p($l->t('Download'))?> - </a> + <?php if (!$_['hideDownload']) { ?> + <a href="<?php p($_['downloadURL']); ?>" id="downloadFile" class="button"> + <span class="icon icon-download"></span> + <?php p($l->t('Download'))?> + </a> + <?php } ?> </div> <?php } ?> <?php endif; ?> |