diff options
author | szaimen <szaimen@e.mail.de> | 2021-07-21 17:55:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-21 17:55:26 +0200 |
commit | 654672f4a38c19caf537e7392755a377a52f9873 (patch) | |
tree | bc407f58d9a33e385c43a895de69d6e28af0e94c | |
parent | 63b4450141e1994733c476d288924d75ff994612 (diff) | |
parent | b803043b808f7cd57ebbb9c18e9c4a49b8f8f036 (diff) | |
download | nextcloud-server-654672f4a38c19caf537e7392755a377a52f9873.tar.gz nextcloud-server-654672f4a38c19caf537e7392755a377a52f9873.zip |
Merge pull request #27674 from fstorz/hide-download-button-for-public-preview-of-audio-files
hide download button for public preview of audio files
-rw-r--r-- | apps/files_sharing/templates/public.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index ffc449f9e63..b2d72a3c337 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -63,7 +63,9 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size); <?php else: ?> <?php if ($_['previewEnabled'] && substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'audio'): ?> <div id="imgframe"> - <audio tabindex="0" controls="" preload="none" style="width: 100%; max-width: <?php p($_['previewMaxX']); ?>px; max-height: <?php p($_['previewMaxY']); ?>px"> + <audio tabindex="0" controls="" preload="none" style="width: 100%; max-width: <?php p($_['previewMaxX']); ?>px; max-height: <?php p($_['previewMaxY']); ?>px" + <?php // See https://github.com/nextcloud/server/pull/27674?> + <?php if ($_['hideDownload']) { ?>controlsList="nodownload" <?php } ?>> <source src="<?php p($_['downloadURL']); ?>" type="<?php p($_['mimetype']); ?>" /> </audio> </div> |