More work in progress on remote work plugin.
[timetracker.git] / WEB-INF / templates / invoice_view.tpl
index 9faa3bb..6441b44 100644 (file)
         <tr>
           <td class="tableHeader">{$i18n.label.date}</td>
           <td class="tableHeader">{$i18n.form.invoice.person}</td>
-  {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+  {if $show_project}
           <td class="tableHeader">{$i18n.label.project}</td>
   {/if}
-  {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+  {if $show_task}
           <td class="tableHeader">{$i18n.label.task}</td>
   {/if}
           <td class="tableHeader">{$i18n.label.note}</td>
         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
           <td valign="top">{$invoice_item.date}</td>
           <td valign="top">{$invoice_item.user_name|escape}</td>
-    {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+    {if $show_project}
           <td valign="top">{$invoice_item.project_name|escape}</td>
     {/if}
-    {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+    {if $show_task}
           <td valign="top">{$invoice_item.task_name|escape}</td>
     {/if}
           <td valign="top">{$invoice_item.note|escape}</td>