summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/templates
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-05-02 16:59:09 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-05-02 16:59:09 +0200
commit49d9631eee1616b9ae2846886c3d428236c5b81a (patch)
tree052f910797add28df8668d702fe9b04b963cf496 /apps/files_sharing/templates
parent6519b9672a7294282c9535d8544baea9a9d74ffd (diff)
parent6e75b37d04b5daf00f85eed925fd5b0203d09cb5 (diff)
downloadnextcloud-server-49d9631eee1616b9ae2846886c3d428236c5b81a.tar.gz
nextcloud-server-49d9631eee1616b9ae2846886c3d428236c5b81a.zip
Merge pull request #8400 from owncloud/download-button-public-folder
reintroduce download button on public shares
Diffstat (limited to 'apps/files_sharing/templates')
-rw-r--r--apps/files_sharing/templates/public.php15
1 files changed, 12 insertions, 3 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index fc8d59e1e89..f3c75134a5f 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -1,3 +1,4 @@
+<?php /** @var $l OC_L10N */ ?>
<div id="notification-container">
<div id="notification" style="display: none;"></div>
</div>
@@ -14,7 +15,12 @@
src="<?php print_unescaped(image_path('', 'logo-wide.svg')); ?>" alt="<?php p($theme->getName()); ?>" /></a>
<div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
<div class="header-right">
- <span id="details"><?php p($l->t('shared by %s', array($_['displayName']))) ?></span>
+ <?php if ($_['showDownloadButton']): ?>
+ <a href="<?php p($_['downloadURL']); ?>" id="download" class="button">
+ <img class="svg" alt="" src="<?php print_unescaped(OCP\image_path("core", "actions/download.svg")); ?>"/>
+ <?php p($l->t('Download'))?>
+ </a>
+ <?php endif ?>
</div>
</div></header>
<div id="content">
@@ -24,7 +30,7 @@
<?php else: ?>
<?php if (substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'image'): ?>
<div id="imgframe">
- <img src="<?php p($_['downloadURL']); ?>" />
+ <img src="<?php p($_['downloadURL']); ?>" alt="" />
</div>
<?php elseif (substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'video'): ?>
<div id="imgframe">
@@ -35,7 +41,10 @@
<?php else: ?>
<div id="imgframe">
<?php $size = \OC\Preview::isMimeSupported($_['mimetype']) ? 500 : 128 ?>
- <img src="<?php p(OCP\Util::linkToRoute( 'core_ajax_public_preview', array('x' => $size, 'y' => $size, 'file' => $_['directory_path'], 't' => $_['dirToken']))); ?>" class="publicpreview"/>
+ <img
+ src="<?php p(OCP\Util::linkToRoute( 'core_ajax_public_preview', array('x' => $size, 'y' => $size, 'file' => $_['directory_path'], 't' => $_['dirToken']))); ?>"
+ class="publicpreview"
+ alt="" />
</div>
<?php endif; ?>
<div class="directDownload">