summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/templates
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-06-09 12:05:02 +0200
committerLukas Reschke <lukas@owncloud.com>2016-06-09 17:55:26 +0200
commit5fdde426eb416b470bc37c86a518c49767a55251 (patch)
tree76837729f0e640a0fdfcc6d5c02afd2ff2f256ce /apps/files_sharing/templates
parent53ba111e21de9c1c3971488911b48fb2aecca112 (diff)
downloadnextcloud-server-5fdde426eb416b470bc37c86a518c49767a55251.tar.gz
nextcloud-server-5fdde426eb416b470bc37c86a518c49767a55251.zip
Add fancy layout
Diffstat (limited to 'apps/files_sharing/templates')
-rw-r--r--apps/files_sharing/templates/public.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index 500b187e36e..0989b35f3b1 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -9,6 +9,7 @@ OCP\Util::addScript('files_sharing', 'public');
OCP\Util::addScript('files', 'fileactions');
OCP\Util::addScript('files', 'fileactionsmenu');
OCP\Util::addScript('files', 'jquery.fileupload');
+OCP\Util::addScript('files_sharing', 'files_drop');
// JS required for folders
OCP\Util::addStyle('files', 'files');
@@ -30,6 +31,7 @@ OCP\Util::addscript('files', 'keyboardshortcuts');
<div id="notification" style="display: none;"></div>
</div>
+<input type="hidden" id="sharingUserId" value="<?php p($_['owner']) ?>">
<input type="hidden" id="filesApp" name="filesApp" value="1">
<input type="hidden" id="isPublic" name="isPublic" value="1">
<input type="hidden" name="dir" value="<?php p($_['dir']) ?>" id="dir">
@@ -115,14 +117,18 @@ OCP\Util::addscript('files', 'keyboardshortcuts');
<?php endif; ?>
</div>
<?php } else { ?>
- <div id="emptycontent" class="">
- <div class="icon-upload"></div>
- <h2><?php p($l->t('Upload files to %s', [$_['shareOwner']])) ?></h2>
- <a href="#" class="inlineblock button">Select</a>
+ <input type="hidden" id="uploadOnlyInterface" value="1"/>
+ <div id="publicUploadDiv">
+ <div id="emptycontent" class="">
+ <div id="displayavatar"><div class="avatardiv"></div></div>
+ <h2><?php p($l->t('Upload files to %s', [$_['shareOwner']])) ?></h2>
+ <p><span class="icon-folder"></span> <?php p($_['filename']) ?></p>
+ <a href="#" class="button icon-upload"><?php p($l->t('Select')) ?></a>
+ </div>
</div>
<?php } ?>
</div>
-<?php if (!isset($_['hideFileList']) || (isset($_['hideFileList']) && $_['hideFileList'] === true)): ?>
+<?php if (!isset($_['hideFileList']) || (isset($_['hideFileList']) && $_['hideFileList'] !== true)): ?>
<input type="hidden" name="dir" id="dir" value="" />
<div class="hiddenuploadfield">
<input type="file" id="file_upload_start" class="hiddenuploadfield" name="files[]"