diff options
author | Joas Schilling <coding@schilljs.com> | 2020-03-12 19:38:18 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-04-01 18:14:38 +0300 |
commit | f878ea96067ff634800a06bff7ecafdfa09e040a (patch) | |
tree | 7dc9285bb601eba769e33dfa689150f3184fc2d4 /apps/files_sharing/templates | |
parent | c1368b86963b93a42ec98a856f8d307d922c8967 (diff) |
Remove user name from public sharing page
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_sharing/templates')
-rw-r--r-- | apps/files_sharing/templates/public.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index a9cfaae9df1..ce251028eec 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -54,7 +54,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size); <label id="view-toggle" for="showgridview" class="button <?php p($_['showgridview'] ? 'icon-toggle-filelist' : 'icon-toggle-pictures') ?>" title="<?php p($l->t('Toggle grid view'))?>"></label> <?php } ?> - + <!-- files listing --> <div id="files-public-content"> <div id="preview"> @@ -88,9 +88,14 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size); <div id="emptycontent" class="<?php if (!empty($_['note'])) { ?>has-note<?php } ?>"> - <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 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 { ?> + <div id="displayavatar"><span class="icon-folder"></span></div> + <h2><?php p($l->t('Upload files to %s', [$_['filename']])) ?></h2> + <?php } ?> <?php if (empty($_['note']) === false) { ?> <h3><?php p($l->t('Note')); ?></h3> |