]> source.dussan.org Git - nextcloud-server.git/commitdiff
add download button on single file share page
authorThomas Müller <thomas.mueller@tmit.eu>
Wed, 15 Jan 2014 14:31:27 +0000 (15:31 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Wed, 15 Jan 2014 14:31:27 +0000 (15:31 +0100)
apps/files_sharing/templates/public.php

index d82e567182a63c3b7de3bb5caf47b1ac07cc689d..e181e8a328060eb04d298462bec107b249e138cb 100644 (file)
                                <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>