diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-07-12 16:58:36 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-07-21 15:02:18 +0200 |
commit | 4f59c8e8ae349fbebf646907d8bf610cf14189d6 (patch) | |
tree | b7835c69b6b7a09df11d6326d23daee2269d7f54 /apps/files_sharing | |
parent | 73b88deeb8942e188a5e1e81f4bfca02412a0c5c (diff) | |
download | nextcloud-server-4f59c8e8ae349fbebf646907d8bf610cf14189d6.tar.gz nextcloud-server-4f59c8e8ae349fbebf646907d8bf610cf14189d6.zip |
show note on public link page
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/css/public.scss | 5 | ||||
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareController.php | 1 | ||||
-rw-r--r-- | apps/files_sharing/templates/public.php | 5 |
3 files changed, 11 insertions, 0 deletions
diff --git a/apps/files_sharing/css/public.scss b/apps/files_sharing/css/public.scss index 2e788a06c40..583912ad236 100644 --- a/apps/files_sharing/css/public.scss +++ b/apps/files_sharing/css/public.scss @@ -169,3 +169,8 @@ thead { opacity: .57; margin-top: 10px; } + +#note { + text-align: center; + padding: 10px; +} diff --git a/apps/files_sharing/lib/Controller/ShareController.php b/apps/files_sharing/lib/Controller/ShareController.php index 0b30a599c7f..bd1331a0908 100644 --- a/apps/files_sharing/lib/Controller/ShareController.php +++ b/apps/files_sharing/lib/Controller/ShareController.php @@ -262,6 +262,7 @@ class ShareController extends AuthPublicShareController { $shareTmpl['owner'] = $share->getShareOwner(); $shareTmpl['filename'] = $share->getNode()->getName(); $shareTmpl['directory_path'] = $share->getTarget(); + $shareTmpl['note'] = $share->getNote(); $shareTmpl['mimetype'] = $share->getNode()->getMimetype(); $shareTmpl['previewSupported'] = $this->previewManager->isMimeSupported($share->getNode()->getMimetype()); $shareTmpl['dirToken'] = $this->getToken(); diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 476f0851547..e337eb9b7f3 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -31,6 +31,11 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size); <input type="hidden" name="maxSizeAnimateGif" value="<?php p($_['maxSizeAnimateGif']); ?>" id="maxSizeAnimateGif"> <?php if (!isset($_['hideFileList']) || (isset($_['hideFileList']) && $_['hideFileList'] === false)) { ?> <div id="files-public-content"> + <?php if (isset($_['note']) && $_['note'] !== '') : ?> + <div id="note"> + <?php p($l->t('Note: ')); p($_['note']); ?> + </div> + <?php endif; ?> <div id="preview"> <?php if (isset($_['folder'])): ?> <?php print_unescaped($_['folder']); ?> |