Added timesheets menu.
authorNik Okuntseff <support@anuko.com>
Fri, 15 Feb 2019 15:36:32 +0000 (15:36 +0000)
committerNik Okuntseff <support@anuko.com>
Fri, 15 Feb 2019 15:36:32 +0000 (15:36 +0000)
WEB-INF/templates/footer.tpl
WEB-INF/templates/header.tpl

index 4ad2ae4..5ac739b 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.18.37.4723 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.18.37.4724 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
index 86bc619..b5f122d 100644 (file)
     {/if}
     {if $user->exists() && ($user->can('view_own_reports') || $user->can('view_reports'))}
             &middot; <a class="mainMenu" href="reports.php">{$i18n.menu.reports}</a> 
-    {/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'))}
+            &middot; <a class="mainMenu" href="timesheets.php">{$i18n.menu.timesheets}</a>
+    {/if}
     {if $user->exists() && $user->isPluginEnabled('iv') && ($user->can('view_own_invoices') || $user->can('manage_invoices'))}
             &middot; <a class="mainMenu" href="invoices.php">{$i18n.title.invoices}</a>
     {/if}