show event as deleted

This commit is contained in:
Evan Prodromou 2011-04-08 12:14:05 -04:00
parent 731bdab804
commit 50c4731d20

View File

@ -326,6 +326,10 @@ class EventPlugin extends MicroappPlugin
{
$rsvp = RSVP::fromNotice($notice);
if (empty($rsvp)) {
$out->element('p', null, _('Deleted.'));
}
$out->elementStart('div', 'rsvp');
$out->raw($rsvp->asHTML());
$out->elementEnd('div');
@ -337,8 +341,9 @@ class EventPlugin extends MicroappPlugin
$profile = $notice->getProfile();
$event = Happening::fromNotice($notice);
assert(!empty($event));
assert(!empty($profile));
if (empty($event)) {
$out->element('p', null, _('Deleted.'));
}
$out->elementStart('div', 'vevent event'); // VEVENT IN