Merge pull request #31253 from nextcloud/backport/31169/stable23

[stable23] hide download button for images
This commit is contained in:
Simon L 2022-02-18 19:12:57 +01:00 committed by GitHub
commit ade7e90bf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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