aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorszaimen <szaimen@e.mail.de>2022-02-14 14:04:40 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2022-02-18 11:07:19 +0000
commitfbb8261a5dae87c6c5ae0b3d3c5109f1d1229f27 (patch)
treeccb8fad90fdc798fd928ecceee73e0cf6acf5a17 /apps
parent5ebe447f8f9fbf553d010805bf7b8029b75142f0 (diff)
downloadnextcloud-server-fbb8261a5dae87c6c5ae0b3d3c5109f1d1229f27.tar.gz
nextcloud-server-fbb8261a5dae87c6c5ae0b3d3c5109f1d1229f27.zip
hide download button for images
Signed-off-by: szaimen <szaimen@e.mail.de>
Diffstat (limited to 'apps')
-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; ?>