summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-07-21 18:28:36 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-07-21 18:55:37 +0200
commitb2b4691e480d358bd221281788f4f46ec0e4d018 (patch)
treec7324e47a16d48d32ef4c497e8188f95bbcafd2d /apps
parenta33b6cdd21868abf026375503a4eb5a36684c8eb (diff)
downloadnextcloud-server-b2b4691e480d358bd221281788f4f46ec0e4d018.tar.gz
nextcloud-server-b2b4691e480d358bd221281788f4f46ec0e4d018.zip
Add filename and sharer in public page
* shows the filename and sharer on the public page * allows the user to identify, that this is a user page and not an official page of the Nextcloud hosting * remove link on logo that redirects to login (fixes #5720) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/css/public.scss10
-rw-r--r--apps/files_sharing/templates/public.php10
2 files changed, 16 insertions, 4 deletions
diff --git a/apps/files_sharing/css/public.scss b/apps/files_sharing/css/public.scss
index 9c8c4a66630..6d9fcf14efc 100644
--- a/apps/files_sharing/css/public.scss
+++ b/apps/files_sharing/css/public.scss
@@ -215,3 +215,13 @@ thead {
max-width: 400px;
text-align: left;
}
+
+#header .header-shared-by {
+ display: inline-block;
+ color: $color-primary-text;
+ position: relative;
+ top: -10px;
+ font-weight: 300;
+ font-size: 12px;
+ margin-top: 10px;
+}
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index f8067a03d02..36b4dcdbe1c 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -36,13 +36,15 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size);
<header><div id="header" class="<?php p((isset($_['folder']) ? 'share-folder' : 'share-file')) ?>">
<div id="header-left">
- <a href="<?php print_unescaped(link_to('', 'index.php')); ?>"
- title="" id="nextcloud">
+ <span id="nextcloud">
<div class="logo logo-icon svg"></div>
<h1 class="header-appname">
- <?php p($theme->getName()); ?>
+ <?php p($_['filename']); ?>
</h1>
- </a>
+ <div class="header-shared-by">
+ <?php echo p($l->t('shared by %s', [$_['displayName']])); ?>
+ </div>
+ </span>
</div>
<div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>