X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=WEB-INF%2Ftemplates%2Finvoices.tpl;h=b966f9e247e81c01bf29489ddf315371c7bbd43b;hb=f18a557af5593668fe61b8e86db4bcf50970e0bd;hp=ad8f53731ee35cc289d58e992ec40b7aa4888539;hpb=9a23a8c0a51b7ec38a96f525484134f3cb85dc7e;p=timetracker.git
diff --git a/WEB-INF/templates/invoices.tpl b/WEB-INF/templates/invoices.tpl
index ad8f5373..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} |
@@ -28,10 +34,10 @@
{/foreach}
-
+
{if !$user->isClient()}
{/if}
{/if}
|