Merge pull request #31169 from nextcloud/enh/noid/hide-download-button-for-images

hide download button for images
pull/31269/head
Simon L 2022-02-18 11:58:42 +07:00 committed by GitHub
commit ac007345e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

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