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:
parent
8b47f45afa
commit
5175e33e31
|
@ -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 = [
|
||||
[
|
||||
|
|
|
@ -746,7 +746,7 @@ footer {
|
|||
margin-top: auto;
|
||||
}
|
||||
|
||||
footer .info a {
|
||||
footer .info .entity-name {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue