Parse and display event/task status from iTip messages
This commit is contained in:
parent
738b56cfd8
commit
232b458be4
2 changed files with 7 additions and 3 deletions
|
@ -625,7 +625,11 @@ class libcalendaring_itip
|
||||||
}
|
}
|
||||||
if ($event['sensitivity'] && $event['sensitivity'] != 'public') {
|
if ($event['sensitivity'] && $event['sensitivity'] != 'public') {
|
||||||
$table->add('label', $this->plugin->gettext('sensitivity'), $this->domain);
|
$table->add('label', $this->plugin->gettext('sensitivity'), $this->domain);
|
||||||
$table->add('sensitivity', ucfirst($this->plugin->gettext($event['sensitivity'])) . '!');
|
$table->add('sensitivity', ucfirst($this->plugin->gettext($event['sensitivity'], $this->domain)) . '!');
|
||||||
|
}
|
||||||
|
if ($event['status'] == 'COMPLETED' || $event['status'] == 'CANCELLED') {
|
||||||
|
$table->add('label', $this->plugin->gettext('status'), $this->domain);
|
||||||
|
$table->add('status', $this->plugin->gettext('status-' . strtolower($event['status']), $this->domain));
|
||||||
}
|
}
|
||||||
if ($event['comment']) {
|
if ($event['comment']) {
|
||||||
$table->add('label', $this->plugin->gettext('comment'), $this->domain);
|
$table->add('label', $this->plugin->gettext('comment'), $this->domain);
|
||||||
|
|
|
@ -415,7 +415,7 @@ class libvcalendar implements Iterator
|
||||||
$event['cancelled'] = true;
|
$event['cancelled'] = true;
|
||||||
else if ($prop->value == 'COMPLETED')
|
else if ($prop->value == 'COMPLETED')
|
||||||
$event['complete'] = 100;
|
$event['complete'] = 100;
|
||||||
else
|
|
||||||
$event['status'] = strval($prop->value);
|
$event['status'] = strval($prop->value);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue