Fixup rendering of event and RSVP

This commit is contained in:
Evan Prodromou 2011-04-20 10:57:46 -04:00
parent 1ab8004d78
commit 0e4029ecb6
3 changed files with 11 additions and 2 deletions

View File

@ -296,6 +296,7 @@ class EventPlugin extends MicroappPlugin
return new RSVPListItem($nli);
break;
}
return null;
}

View File

@ -55,7 +55,7 @@ class EventListItem extends NoticeListItemAdapter
$this->nli->out->elementEnd('div');
}
function showEventNotice($notice, $out)
function showContent($notice, $out)
{
$profile = $notice->getProfile();
$event = Happening::fromNotice($notice);

View File

@ -47,7 +47,15 @@ if (!defined('STATUSNET')) {
class RSVPListItem extends NoticeListItemAdapter
{
function showRSVPNotice($notice, $out)
function showNotice()
{
$this->nli->out->elementStart('div', 'entry-title');
$this->nli->showAuthor();
$this->showContent();
$this->nli->out->elementEnd('div');
}
function showContent($notice, $out)
{
$rsvp = RSVP::fromNotice($notice);