Skip to content

Commit ac00734

Browse files
authored
Merge pull request #31169 from nextcloud/enh/noid/hide-download-button-for-images
hide download button for images
2 parents ee711ed + aa1c7eb commit ac00734

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

apps/files_sharing/templates/public.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,12 @@
7777
<div>
7878
<?php p($_['filename'])?> (<?php p($_['fileSize']) ?>)
7979
</div>
80-
<a href="<?php p($_['downloadURL']); ?>" id="downloadFile" class="button">
81-
<span class="icon icon-download"></span>
82-
<?php p($l->t('Download'))?>
83-
</a>
80+
<?php if (!$_['hideDownload']) { ?>
81+
<a href="<?php p($_['downloadURL']); ?>" id="downloadFile" class="button">
82+
<span class="icon icon-download"></span>
83+
<?php p($l->t('Download'))?>
84+
</a>
85+
<?php } ?>
8486
</div>
8587
<?php } ?>
8688
<?php endif; ?>

0 commit comments

Comments
 (0)