Browse Source
Merge pull request #38804 from nextcloud/fix/38798/show-button-only-one-time
make sure to show download button only one time
pull/38742/head
Simon L
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
3 deletions
-
apps/files_sharing/templates/public.php
|
|
|
@ -62,7 +62,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size); |
|
|
|
<?php else: ?>
|
|
|
|
<!-- preview frame to open file in with viewer --> |
|
|
|
<div id="imgframe"></div> |
|
|
|
<?php if (isset($_['mimetype']) && str_starts_with($_['mimetype'], 'image')) { ?>
|
|
|
|
<?php if (isset($_['mimetype']) && str_starts_with($_['mimetype'], 'image')): ?>
|
|
|
|
<div class="directDownload"> |
|
|
|
<div> |
|
|
|
<?php p($_['filename'])?> (<?php p($_['fileSize']) ?>)
|
|
|
|
@ -74,8 +74,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size); |
|
|
|
</a> |
|
|
|
<?php } ?>
|
|
|
|
</div> |
|
|
|
<?php } ?>
|
|
|
|
<?php if ($_['previewURL'] === $_['downloadURL'] && !$_['hideDownload']): ?>
|
|
|
|
<?php elseif ($_['previewURL'] === $_['downloadURL'] && !$_['hideDownload']): ?>
|
|
|
|
<div class="directDownload"> |
|
|
|
<div> |
|
|
|
<?php p($_['filename'])?> (<?php p($_['fileSize']) ?>)
|
|
|
|
|