forked from GNUsocial/gnu-social
show group aliases on group profile block
This commit is contained in:
parent
636455ad82
commit
f2a98e2329
@ -153,4 +153,23 @@ class GroupProfileBlock extends ProfileBlock
|
||||
}
|
||||
$this->out->elementEnd('div');
|
||||
}
|
||||
|
||||
function showName()
|
||||
{
|
||||
parent::showName();
|
||||
$this->showAliases();
|
||||
}
|
||||
|
||||
function showAliases()
|
||||
{
|
||||
$aliases = $this->group->getAliases();
|
||||
|
||||
if (!empty($aliases)) {
|
||||
$this->out->elementStart('ul', 'group_aliases');
|
||||
foreach ($aliases as $alias) {
|
||||
$this->out->element('li', 'group_alias', $alias);
|
||||
}
|
||||
$this->out->elementEnd('ul');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1976,6 +1976,12 @@ display:block;
|
||||
width:auto;
|
||||
}
|
||||
|
||||
.profile_block .group_aliases .group_alias {
|
||||
display:inline;
|
||||
list-style-type: none;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.profile_block .entity_tags dt {
|
||||
display: inline;
|
||||
margin-right: 3px;
|
||||
|
Loading…
Reference in New Issue
Block a user