We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 0e4029ec authored by Evan Prodromou's avatar Evan Prodromou

Fixup rendering of event and RSVP

parent 1ab8004d
......@@ -296,6 +296,7 @@ class EventPlugin extends MicroappPlugin
return new RSVPListItem($nli);
break;
}
return null;
}
......
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment