X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Finvoices.tpl;h=b966f9e247e81c01bf29489ddf315371c7bbd43b;hb=ee95ed0e72258b76ed0280f04d6846d802aefa12;hp=56046f451cf8236f7ce5b8cbbc89eb14f1878d0f;hpb=a781da5661a1932521e0d1feb4be340b97edce9a;p=timetracker.git
diff --git a/WEB-INF/templates/invoices.tpl b/WEB-INF/templates/invoices.tpl
index 56046f45..b966f9e2 100644
--- a/WEB-INF/templates/invoices.tpl
+++ b/WEB-INF/templates/invoices.tpl
@@ -5,22 +5,28 @@
-{if $user->canManageTeam() || $user->isClient()}
+{if $user->can('manage_invoices') || $user->can('view_own_invoices')}
+ {if $user->isPluginEnabled('ps')}
+
+ {/if}
{if !$user->isClient()}
{/if}
{foreach $invoices as $invoice}
-
- {$invoice.name|escape:'html'} |
- {$invoice.client_name|escape:'html'} |
+
+ {$invoice.name|escape} |
+ {$invoice.client_name|escape} |
{$invoice.date} |
+ {if $user->isPluginEnabled('ps')}
+ {if $invoice.paid}{$i18n.label.yes}{else}{$i18n.label.no}{/if} |
+ {/if}
{$i18n.label.view} |
{if !$user->isClient()}
{$i18n.label.delete} |
@@ -31,7 +37,7 @@
{if !$user->isClient()}
{/if}
{/if}
|