mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 06:37:56 -04:00
Guest view download button seperated for image
Signed-off-by: Sangramsinh Desai <sangramsinh.desai@t-systems.com> Signed-off-by: sangramsinh.desai@t-systems.com <sangramsinh.desai@t-systems.com>
This commit is contained in:
parent
ce8a8c0c83
commit
2254a40f61
1 changed files with 13 additions and 0 deletions
|
|
@ -72,6 +72,19 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size);
|
|||
<?php else: ?>
|
||||
<!-- Preview frame is filled via JS to support SVG images for modern browsers -->
|
||||
<div id="imgframe"></div>
|
||||
<?php if(isset($_['mimetype'])){ ?>
|
||||
<?php if (strpos($_['mimetype'], 'image') === 0) { ?>
|
||||
<div class="directDownload">
|
||||
<div class="video-file-details">
|
||||
<?php p($l->t('%s', [$_['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>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($_['previewURL'] === $_['downloadURL'] && !$_['hideDownload']): ?>
|
||||
<div class="directDownload">
|
||||
|
|
|
|||
Loading…
Reference in a new issue