Skip to content

Commit

Permalink
Merge pull request #31253 from nextcloud/backport/31169/stable23
Browse files Browse the repository at this point in the history
[stable23] hide download button for images
  • Loading branch information
szaimen authored Feb 18, 2022
2 parents f69a79e + 4136eed commit ade7e90
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions apps/files_sharing/templates/public.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,12 @@
<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; ?>
Expand Down

0 comments on commit ade7e90

Please sign in to comment.