<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'])): ?>
      <?php echo Horde::link($task['complete_link'], _("Complete Task"), 'widget') . Horde::img('unchecked.png', _("Complete Task")) . '</a>' ?>
    <?php else: ?>
      <?php echo Nag::formatCompletion($task['completed']) ?></a></td>
    <?php endif; ?>
  </td>

  <td nowrap="nowrap" class="<?php echo $style ?>"><span class="<?php echo $tstyle ?>"><?php echo $owner ?></span></td>
  <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($prefs->getValue('date_format'), $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>
