Changed title on week view to Week from Time.
authorNik Okuntseff <support@anuko.com>
Wed, 24 Apr 2019 21:25:19 +0000 (21:25 +0000)
committerNik Okuntseff <support@anuko.com>
Wed, 24 Apr 2019 21:25:19 +0000 (21:25 +0000)
WEB-INF/templates/footer.tpl
WEB-INF/templates/week.tpl
week.php

index c5d29d8..a4372d0 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.19.3.4984 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.19.3.4985 | 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 cd45a3b..e786ba8 100644 (file)
@@ -39,7 +39,7 @@ function fillDropdowns() {
           <td>{$forms.weekTimeForm.onBehalfUser.control}</td>
         </tr>
 {/if}
-{if $user->isPluginEnabled('cl')}
+{if $show_client}
         <tr>
           <td align="right">{$i18n.label.client}{if $user->isPluginEnabled('cm')} (*){/if}:</td>
           <td>{$forms.weekTimeForm.client.control}</td>
index af5b9eb..e2aa2d9 100644 (file)
--- a/week.php
+++ b/week.php
@@ -57,6 +57,7 @@ if (!$user->behalf_id && !$user->can('track_own_time') && !$user->adjustBehalfId
 }
 // End of access checks.
 
+$showClient = $user->isPluginEnabled('cl');
 $showFiles = $user->isPluginEnabled('at');
 
 // Initialize and store date in session.
@@ -509,7 +510,8 @@ $smarty->assign('onload', 'onLoad="fillDropdowns()"');
 $smarty->assign('timestring', $startDate->toString($user->date_format).' - '.$endDate->toString($user->date_format));
 $smarty->assign('time_records', $records);
 $smarty->assign('show_navigation', !$user->getConfigOption('menu_week'));
+$smarty->assign('show_client', $showClient);
 $smarty->assign('show_files', $showFiles);
-$smarty->assign('title', $i18n->get('title.time'));
+$smarty->assign('title', $i18n->get('menu.week'));
 $smarty->assign('content_page_name', 'week.tpl');
 $smarty->display('index.tpl');