From cc12768e670e4a553593a6c41bec7ccc568102d4 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Fri, 15 Feb 2019 15:36:32 +0000 Subject: [PATCH] Added timesheets menu. --- WEB-INF/templates/footer.tpl | 2 +- WEB-INF/templates/header.tpl | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 4ad2ae4b..5ac739bf 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.37.4723 | Copyright © Anuko | +  Anuko Time Tracker 1.18.37.4724 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/WEB-INF/templates/header.tpl b/WEB-INF/templates/header.tpl index 86bc619c..b5f122db 100644 --- a/WEB-INF/templates/header.tpl +++ b/WEB-INF/templates/header.tpl @@ -114,7 +114,11 @@ {/if} {if $user->exists() && ($user->can('view_own_reports') || $user->can('view_reports'))} · {$i18n.menu.reports} - {/if} + {/if} + {if $user->exists() && $user->isPluginEnabled('ts') && ($user->can('view_own_timesheets') || $user->can('manage_own_timesheets') || + $user->can('view_timesheets') || $user->can('manage_timesheets') || $user->can('approve_timesheets'))} + · {$i18n.menu.timesheets} + {/if} {if $user->exists() && $user->isPluginEnabled('iv') && ($user->can('view_own_invoices') || $user->can('manage_invoices'))} · {$i18n.title.invoices} {/if} -- 2.20.1