<tr>
  <td nowrap="nowrap" align="center" class="linedRow">
    <?php if (!is_a($share, 'PEAR_Error') && $share->hasPermission(Auth::getAuth(), PERMS_EDIT)): ?>
      <?php echo Horde::link(Horde::applicationUrl(Util::addParameter($memourl, 'actionID', 'modify_memo')), _("Edit Note"), 'widget') .
                 Horde::img('edit.png', _("Edit Note"), '', $registry->getImageDir('horde')) ?></a>
    <?php endif; ?>
  </td>
  <td nowrap="nowrap" class="linedRow">
    <?php echo Horde::linkTooltip(Horde::applicationUrl($viewurl), _("View Note Details"), '', '', '', ($memo['body'] != $memo['desc']) ? wordwrap($memo['body']) : '') . ((!empty($memo['desc']) || $memo['desc'] == '0') ? htmlspecialchars($memo['desc']) : '<i>' . _("Empty Note") . '</i>') ?></a>
  </td>
  <td class="linedRow" style="background-color: <?php echo $color ?>; color: <?php echo $fgcolor ?>;"><?php echo htmlspecialchars($memo['category'] ? $memo['category'] : _("Unfiled")) ?></td>
</tr>
