Skip to content

Commit

Permalink
Merge pull request #38804 from nextcloud/fix/38798/show-button-only-o…
Browse files Browse the repository at this point in the history
…ne-time

make sure to show download button only one time
  • Loading branch information
szaimen committed Jun 14, 2023
2 parents e6959bd + 315c7d3 commit e4927cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/files_sharing/templates/public.php
Expand Up @@ -62,7 +62,7 @@
<?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']) ?>)
Expand All @@ -74,8 +74,7 @@
</a>
<?php } ?>
</div>
<?php } ?>
<?php if ($_['previewURL'] === $_['downloadURL'] && !$_['hideDownload']): ?>
<?php elseif ($_['previewURL'] === $_['downloadURL'] && !$_['hideDownload']): ?>
<div class="directDownload">
<div>
<?php p($_['filename'])?>&nbsp;(<?php p($_['fileSize']) ?>)
Expand Down

0 comments on commit e4927cd

Please sign in to comment.