diff options
author | Lukas Reschke <lukas@owncloud.com> | 2016-06-09 17:45:16 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2016-06-09 17:55:26 +0200 |
commit | 6e99b0f59d3b0278c45d42dcec01ff554a89d979 (patch) | |
tree | e7f60f51f36517f15bd6a91e5d5bd1c1739f3d20 /apps/files_sharing/templates | |
parent | 5fdde426eb416b470bc37c86a518c49767a55251 (diff) | |
download | nextcloud-server-6e99b0f59d3b0278c45d42dcec01ff554a89d979.tar.gz nextcloud-server-6e99b0f59d3b0278c45d42dcec01ff554a89d979.zip |
Make uploading possible via select and cleanup CSS
Diffstat (limited to 'apps/files_sharing/templates')
-rw-r--r-- | apps/files_sharing/templates/public.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 0989b35f3b1..f4c954c76d5 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -41,7 +41,9 @@ OCP\Util::addscript('files', 'keyboardshortcuts'); <input type="hidden" name="mimetype" value="<?php p($_['mimetype']) ?>" id="mimetype"> <input type="hidden" name="previewSupported" value="<?php p($_['previewSupported'] ? 'true' : 'false'); ?>" id="previewSupported"> <input type="hidden" name="mimetypeIcon" value="<?php p(\OC::$server->getMimeTypeDetector()->mimeTypeIcon($_['mimetype'])); ?>" id="mimetypeIcon"> -<input type="hidden" name="filesize" value="<?php p($_['nonHumanFileSize']); ?>" id="filesize"> +<?php if (!isset($_['hideFileList']) || (isset($_['hideFileList']) && $_['hideFileList'] === false)): ?> + <input type="hidden" name="filesize" value="<?php p($_['nonHumanFileSize']); ?>" id="filesize"> +<?php endif; ?> <input type="hidden" name="maxSizeAnimateGif" value="<?php p($_['maxSizeAnimateGif']); ?>" id="maxSizeAnimateGif"> @@ -89,7 +91,7 @@ OCP\Util::addscript('files', 'keyboardshortcuts'); </div> </div></header> <div id="content-wrapper" <?php if(isset($_['hideFileList']) && $_['hideFileList'] === true){ print_unescaped(" class=\"content-wrapper-upload\"");} ?>> - <?php if (!isset($_['hideFileList']) || (isset($_['hideFileList']) && $_['hideFileList'] === false)) { ?> + <?php if (!isset($_['hideFileList']) || (isset($_['hideFileList']) && $_['hideFileList'] === false)) { ?> <div id="preview"> <?php if (isset($_['folder'])): ?> <?php print_unescaped($_['folder']); ?> @@ -117,13 +119,17 @@ OCP\Util::addscript('files', 'keyboardshortcuts'); <?php endif; ?> </div> <?php } else { ?> - <input type="hidden" id="uploadOnlyInterface" value="1"/> - <div id="publicUploadDiv"> + <input type="hidden" id="upload-only-interface" value="1"/> + <div id="public-upload"> <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> + <input type="file" name="files[]" class="hidden" multiple> + <a href="#" class="button icon-upload"><?php p($l->t('Select')) ?></a> + <ul> + </ul> </div> </div> <?php } ?> |