summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-01-15 15:31:27 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-01-15 15:31:27 +0100
commit50ae2ab14c1ae852ff98cee9ae10a4b9218bd1db (patch)
tree23a2cc74ebd790204a781beb56107bc8f4e4df4d
parentb3a668378484ad65c601964d84a0b70e7f93318e (diff)
downloadnextcloud-server-50ae2ab14c1ae852ff98cee9ae10a4b9218bd1db.tar.gz
nextcloud-server-50ae2ab14c1ae852ff98cee9ae10a4b9218bd1db.zip
add download button on single file share page
-rw-r--r--apps/files_sharing/templates/public.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index d82e567182a..e181e8a3280 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -40,13 +40,19 @@
<ul id="noPreview">
<li class="error">
<?php p($l->t('No preview available for').' '.$_['filename']); ?><br />
- <a href="<?php p($_['downloadURL']); ?>" id="download"><img class="svg" alt="Download"
- src="<?php print_unescaped(OCP\image_path("core", "actions/download.svg")); ?>"
- /><?php p($l->t('Download'))?></a>
</li>
</ul>
<?php endif; ?>
- <div class="directLink"><label for="directLink"><?php p($l->t('Direct link')) ?></label><input id="directLink" type="text" readonly value="<?php p($_['downloadURL']); ?>"></div>
+ <div class="button">
+ <a href="<?php p($_['downloadURL']); ?>" id="download">
+ <img class="svg" alt="Download" src="<?php print_unescaped(OCP\image_path("core", "actions/download.svg")); ?>"/>
+ <?php p($l->t('Download %s', array($_['filename'])))?>
+ </a>
+ </div>
+ <div class="directLink">
+ <label for="directLink"><?php p($l->t('Direct link')) ?></label>
+ <input id="directLink" type="text" readonly value="<?php p($_['downloadURL']); ?>">
+ </div>
<?php endif; ?>
</div>
<footer>