show group aliases on group profile block

This commit is contained in:
Evan Prodromou 2011-09-30 12:23:10 -04:00
parent 636455ad82
commit f2a98e2329
2 changed files with 25 additions and 0 deletions

View File

@ -153,4 +153,23 @@ class GroupProfileBlock extends ProfileBlock
} }
$this->out->elementEnd('div'); $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');
}
}
} }

View File

@ -1976,6 +1976,12 @@ display:block;
width:auto; width:auto;
} }
.profile_block .group_aliases .group_alias {
display:inline;
list-style-type: none;
font-style: italic;
}
.profile_block .entity_tags dt { .profile_block .entity_tags dt {
display: inline; display: inline;
margin-right: 3px; margin-right: 3px;