Skip to content

Commit

Permalink
Theming: Only Entity in footer if a url is set
Browse files Browse the repository at this point in the history
fixes nextcloud#10024

Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr authored and weeman1337 committed Sep 6, 2018
1 parent b0f032c commit c5b9bdc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions apps/theming/lib/ThemingDefaults.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,13 @@ public function getPrivacyUrl() {

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 = [
[
Expand Down
2 changes: 1 addition & 1 deletion core/css/guest.css
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ footer {
margin-top: auto;
}

footer .info a {
footer .info .entity-name {
font-weight: 600;
}

Expand Down

0 comments on commit c5b9bdc

Please sign in to comment.