diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-07-17 16:48:47 +0200 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-07-18 20:15:39 +0200 |
commit | f28d933acc2d97021c69be79c7f2238cbaac419f (patch) | |
tree | d5fe8eceb005d3d72d236abb4bc1c29be4273d25 /apps/files_sharing/templates | |
parent | f45d6135d7f707d34017312e975137c645d202c7 (diff) | |
download | nextcloud-server-f28d933acc2d97021c69be79c7f2238cbaac419f.tar.gz nextcloud-server-f28d933acc2d97021c69be79c7f2238cbaac419f.zip |
feat(files_sharing): add public name prompt for files requests
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing/templates')
-rw-r--r-- | apps/files_sharing/templates/public.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 109eaf2e9da..7620d309ff6 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -27,6 +27,7 @@ <input type="hidden" name="mimetypeIcon" value="<?php p(\OC::$server->getMimeTypeDetector()->mimeTypeIcon($_['mimetype'])); ?>" id="mimetypeIcon"> <input type="hidden" name="hideDownload" value="<?php p($_['hideDownload'] ? 'true' : 'false'); ?>" id="hideDownload"> <input type="hidden" id="disclaimerText" value="<?php p($_['disclaimer']) ?>"> + <?php $upload_max_filesize = OC::$server->get(\bantu\IniGetWrapper\IniGetWrapper::class)->getBytes('upload_max_filesize'); $post_max_size = OC::$server->get(\bantu\IniGetWrapper\IniGetWrapper::class)->getBytes('post_max_size'); @@ -102,14 +103,11 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size); class="emptycontent <?php if (!empty($_['note'])) { ?>has-note<?php } ?>"> <?php if ($_['shareOwner']) { ?> <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> - <?php } else if ($_['label']) { ?> - <div id="displayavatar"><span class="icon-folder"></span></div> - <h2><?php p($l->t('Upload files to %s', [$_['label']])) ?></h2> - <?php } else{ ?> + <h2><?php p($l->t('Upload files to %s', [$_['label'] ?: $_['filename']])) ?></h2> + <p><?php p($l->t('%s shared a folder with you.', [$_['shareOwner']])) ?></p> + <?php } else { ?> <div id="displayavatar"><span class="icon-folder"></span></div> - <h2><?php p($l->t('Upload files to %s', [$_['filename']])) ?></h2> + <h2><?php p($l->t('Upload files to %s', [$_['label'] ?: $_['filename']])) ?></h2> <?php } ?> <?php if (empty($_['note']) === false) { ?> |