Theming: Only Entity in footer if a url is set

fixes #10024

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-08-27 12:17:25 +02:00
parent 8b47f45afa
commit 5175e33e31
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
2 changed files with 8 additions and 4 deletions

View File

@ -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 = [
[

View File

@ -746,7 +746,7 @@ footer {
margin-top: auto;
}
footer .info a {
footer .info .entity-name {
font-weight: 600;
}