diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-08-27 12:17:25 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-08-27 13:59:16 +0200 |
commit | 5175e33e31a45035ad4162aef3c342a277a26894 (patch) | |
tree | 4370340272cae79532122a3e1e2da6f4ac94610c | |
parent | 8b47f45afa3b7837032d6ce1cfcda1c901ae840f (diff) | |
download | nextcloud-server-5175e33e31a45035ad4162aef3c342a277a26894.tar.gz nextcloud-server-5175e33e31a45035ad4162aef3c342a277a26894.zip |
Theming: Only Entity in footer if a url is set
fixes #10024
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | apps/theming/lib/ThemingDefaults.php | 10 | ||||
-rw-r--r-- | core/css/guest.css | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php index 72286ece4b8..3c7acafd6e9 100644 --- a/apps/theming/lib/ThemingDefaults.php +++ b/apps/theming/lib/ThemingDefaults.php @@ -151,9 +151,13 @@ class ThemingDefaults extends \OC_Defaults { public function getShortFooter() { $slogan = $this->getSlogan(); - $footer = '<a href="'. $this->getBaseUrl() . '" target="_blank"' . - ' rel="noreferrer noopener">' .$this->getEntity() . '</a>'. - ($slogan !== '' ? ' – ' . $slogan : ''); + if ($this->getBaseUrl() !== '') { + $footer = '<a href="' . $this->getBaseUrl() . '" target="_blank"' . + ' rel="noreferrer noopener" class="entity-name">' . $this->getEntity() . '</a>'; + } else { + $footer = '<span class="entity-name">' .$this->getEntity() . '</span>'; + } + $footer .= ($slogan !== '' ? ' – ' . $slogan : ''); $links = [ [ diff --git a/core/css/guest.css b/core/css/guest.css index 5f4eaefe80a..fc926688c44 100644 --- a/core/css/guest.css +++ b/core/css/guest.css @@ -746,7 +746,7 @@ footer { margin-top: auto; } -footer .info a { +footer .info .entity-name { font-weight: 600; } |