X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Finvoice_view.tpl;h=6441b44dbf58e79847746095a5d70befb8a902c4;hb=fe8af9a04f7170a0623915f31610c6c4c3df4058;hp=9faa3bb21fccf17a39ee8bbe2e92f9f90da699c9;hpb=b7df85b084e9aaecef29ff6712015194f96e0c22;p=timetracker.git diff --git a/WEB-INF/templates/invoice_view.tpl b/WEB-INF/templates/invoice_view.tpl index 9faa3bb2..6441b44d 100644 --- a/WEB-INF/templates/invoice_view.tpl +++ b/WEB-INF/templates/invoice_view.tpl @@ -20,10 +20,10 @@ {$i18n.label.date} {$i18n.form.invoice.person} - {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} + {if $show_project} {$i18n.label.project} {/if} - {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} + {if $show_task} {$i18n.label.task} {/if} {$i18n.label.note} @@ -37,10 +37,10 @@ {$invoice_item.date} {$invoice_item.user_name|escape} - {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} + {if $show_project} {$invoice_item.project_name|escape} {/if} - {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} + {if $show_task} {$invoice_item.task_name|escape} {/if} {$invoice_item.note|escape}