mirror of
https://github.com/nextcloud/server.git
synced 2026-05-19 08:25:56 -04:00
make sure to show download button only one time
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
6fb44c75c5
commit
806a114f2b
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']) && strpos($_['mimetype'], 'image') === 0) { ?>
|
||||
<?php if (isset($_['mimetype']) && strpos($_['mimetype'], 'image') === 0): ?>
|
||||
<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