Revert "Add an indicator saying to whom a notice is addressed"
This reverts commit 2c14185a527becaeda764e2e162fe8cd7e762597.
This commit is contained in:
parent
ec1579474c
commit
8aacc4b84a
@ -119,7 +119,6 @@ class NoticeListItem extends Widget
|
|||||||
{
|
{
|
||||||
$this->out->elementStart('div', 'entry-title');
|
$this->out->elementStart('div', 'entry-title');
|
||||||
$this->showAuthor();
|
$this->showAuthor();
|
||||||
$this->showAddressees();
|
|
||||||
$this->showContent();
|
$this->showContent();
|
||||||
$this->out->elementEnd('div');
|
$this->out->elementEnd('div');
|
||||||
}
|
}
|
||||||
@ -219,24 +218,6 @@ class NoticeListItem extends Widget
|
|||||||
$this->out->elementEnd('span');
|
$this->out->elementEnd('span');
|
||||||
}
|
}
|
||||||
|
|
||||||
function showAddressees()
|
|
||||||
{
|
|
||||||
$groups = $this->notice->getGroups();
|
|
||||||
if (!empty($groups) && count($groups) > 0) {
|
|
||||||
$this->out->text('▶ ');
|
|
||||||
$first = true;
|
|
||||||
foreach ($groups as $group) {
|
|
||||||
if (!$first) {
|
|
||||||
$this->out->text(', ');
|
|
||||||
} else {
|
|
||||||
$first = false;
|
|
||||||
}
|
|
||||||
$this->out->element('a', array('href' => $group->homeUrl()),
|
|
||||||
$group->nickname);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* show the avatar of the notice's author
|
* show the avatar of the notice's author
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user