Skip to content

Commit

Permalink
Add PERCENT-COMPLETE to iTip viewer for vTodo.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Feb 5, 2015
1 parent ee9d51f commit edb248d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions imp/lib/Mime/Viewer/Itip.php
Expand Up @@ -731,6 +731,10 @@ protected function _vTodo($vtodo, $id, $method)
$attendees = null;
}

try {
$view->percentComplete = $vtodo->getAttribute('PERCENT-COMPLETE');
} catch (Horde_Icalendar_Exception $e) {}

if (!empty($options)) {
reset($options);
$view->options = $options;
Expand Down
6 changes: 6 additions & 0 deletions imp/templates/itip/action.html.php
Expand Up @@ -42,6 +42,12 @@
<td><?php echo nl2br($this->h($this->desc2)) ?></td>
</tr>
<?php endif; ?>
<?php if (strlen($this->percentComplete)): ?>
<tr>
<td><strong><?php echo _("Percent complete") ?>:</strong></td>
<td><?php echo nl2br($this->h($this->percentComplete)) ?></td>
</tr>
<?php endif; ?>

<?php if (strlen($this->loc)): ?>
<tr>
Expand Down

0 comments on commit edb248d

Please sign in to comment.