aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_sharing/css/public.css11
-rw-r--r--apps/files_sharing/js/public.js2
-rw-r--r--apps/files_sharing/templates/public.php1
3 files changed, 14 insertions, 0 deletions
diff --git a/apps/files_sharing/css/public.css b/apps/files_sharing/css/public.css
index 3aa4a483041..3e1dec9bbe1 100644
--- a/apps/files_sharing/css/public.css
+++ b/apps/files_sharing/css/public.css
@@ -132,3 +132,14 @@ thead{
top: -2px;
color: #555;
}
+
+.directLink {
+ margin-bottom: 20px;
+}
+ .directLink label {
+ font-weight: normal;
+ }
+ .directLink input {
+ margin-left: 10px;
+ width: 300px;
+ }
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index 67320b1cdb6..eacd4096ed8 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -67,4 +67,6 @@ $(document).ready(function() {
procesSelection();
});
+ $('#directLink').focus();
+
});
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index 5d935f645e6..1f5453468b4 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -95,6 +95,7 @@
</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']); ?>"></input></div>
<?php endif; ?>
</div>
<footer>