mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Duplicate code removed
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
119010d234
commit
b1190a03f7
1 changed files with 1 additions and 14 deletions
|
|
@ -82,20 +82,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size);
|
|||
<?php p($l->t('Download'))?>
|
||||
</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if(isset($_['mimetype'])){ ?>
|
||||
<?php if (strpos($_['mimetype'], 'image') === 0) { ?>
|
||||
<div class="directDownload">
|
||||
<div>
|
||||
<?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 } ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($_['previewURL'] === $_['downloadURL'] && !$_['hideDownload']): ?>
|
||||
<div class="directDownload">
|
||||
|
|
|
|||
Loading…
Reference in a new issue