mirror of
https://github.com/nextcloud/server.git
synced 2026-03-03 05:51:07 -05:00
Merge pull request #38804 from nextcloud/fix/38798/show-button-only-one-time
make sure to show download button only one time
This commit is contained in:
commit
e4927cd915
1 changed files with 2 additions and 3 deletions
|
|
@ -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']) ?>)
|
||||
|
|
|
|||
Loading…
Reference in a new issue