-{if in_array('cl', explode(',', $user->plugins))}
- <td valign='top'>{$item.client|escape:'html'}</td>
-{/if}
-{if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
- <td valign='top'>{$item.project|escape:'html'}</td>
-{/if}
- <td valign='top'>{$item.item|escape:'html'}</td>
- <td valign='top' align='right'>{$item.cost}</td>
- <td valign='top' align='center'>
- {if $item.invoice_id}
-
- {else}
- <a href='expense_edit.php?id={$item.id}'>{$i18n.label.edit}</a>
- {/if}
- </td>
- </tr>
- {/foreach}
- </table>
- {if $expense_items}
- <table border="0" cellpadding="3" cellspacing="1" width="100%">
- <tr>
- <td nowrap align="right">{$i18n.label.day_total}: {$user->currency|escape:'html'} {$day_total}</td>
- </tr>
- </table>
- {/if}
-
+ {if $user->isPluginEnabled('cl')}
+ <td valign="top">{$item.client|escape}</td>
+ {/if}
+ {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+ <td valign="top">{$item.project|escape}</td>