Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorszaimen <szaimen@e.mail.de>2022-02-14 16:04:40 +0300
committerszaimen <szaimen@e.mail.de>2022-02-16 15:38:11 +0300
commitaa1c7ebbd333921538f50c7b8b35d80d29505389 (patch)
tree6c53a8b5501914879d5d711c58c074d86c9a5f6e /apps/files_sharing/templates
parent7b14b96231086592a2f654009c8623c62ad3cf97 (diff)
hide download button for images
Signed-off-by: szaimen <szaimen@e.mail.de>
Diffstat (limited to 'apps/files_sharing/templates')
-rw-r--r--apps/files_sharing/templates/public.php10
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; ?>