<tr>
  <td align="center" nowrap="nowrap" class="<?php echo $style ?>">
<?php
if (!is_a($share, 'PEAR_Error') && $share->hasPermission(Auth::getAuth(), PERMS_EDIT) && empty($task['completed'])) {
    echo Horde::link($task['complete_link'], _("Complete Task"), 'widget') . Horde::img('unchecked.png', _("Complete Task")) . '</a>';
} else {
    echo Nag::formatCompletion($task['completed']);
}
?>
  </td>

<?php if ($showTasklist): ?>
  <td nowrap="nowrap" class="<?php echo $style ?>"><span class="<?php echo $tstyle ?>"><?php echo $owner ?></span></td>
<?php endif; ?>
  <td align="center" nowrap="nowrap" class="<?php echo $style ?>"><?php echo Nag::formatPriority($task['priority']) ?></td>
  <td nowrap="nowrap" class="<?php echo $style ?>">
    <?php
    if (!is_a($share, 'PEAR_Error') && $share->hasPermission(Auth::getAuth(), PERMS_EDIT)) {
        echo Horde::link($task['edit_link'], _("Edit Task"), 'widget') . Horde::img('edit.png', _("Edit Task"), null, $registry->getImageDir('horde')) . '</a>';
    }
    ?>
  </td>
  <td nowrap="nowrap" class="<?php echo $style ?>"><?php $link = strlen($task['desc']) ? 'linkTooltip' : 'link'; echo Horde::$link($task['view_link'], _("View Task Details"), $tstyle, '', '', wordwrap($task['desc'])) . (strlen($task['name']) ? htmlspecialchars($task['name']) : _("[none]")) ?></a></td>
  <td class="<?php echo $style ?>"><?php echo strlen($task['desc']) ? Horde::img('note.png', _("Task Note")) : '&nbsp;' ?></td>
  <td class="<?php echo $style ?>"><?php echo (!empty($task['alarm']) && !empty($task['due'])) ?
    Horde::img('alarm_small.png', _("Task Alarm")) : '&nbsp;' ?>
  </td>
  <td nowrap="nowrap" class="<?php echo $style ?>">
    <?php echo !empty($task['due']) ? strftime($dateFormat, $task['due']) : '&nbsp;' ?>
  </td>
  <td class="<?php echo $style ?>" style="background-color: <?php echo $color ?>; color: <?php echo $fgcolor ?>;"><?php echo htmlspecialchars($task['category'] ? $task['category'] : _("Unfiled")) ?></td>
</tr>
