From e23ea8f905bd9122e5c52a3457d05ebb20f6570b Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Wed, 24 Apr 2019 21:25:19 +0000 Subject: [PATCH] Changed title on week view to Week from Time. --- WEB-INF/templates/footer.tpl | 2 +- WEB-INF/templates/week.tpl | 2 +- week.php | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index c5d29d85..a4372d0b 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
- {/if} -{if $user->isPluginEnabled('cl')} +{if $show_client} diff --git a/week.php b/week.php index af5b9eb0..e2aa2d9d 100644 --- 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'); -- 2.20.1
 Anuko Time Tracker 1.19.3.4984 | Copyright © Anuko | +  Anuko Time Tracker 1.19.3.4985 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/WEB-INF/templates/week.tpl b/WEB-INF/templates/week.tpl index cd45a3b1..e786ba85 100644 --- a/WEB-INF/templates/week.tpl +++ b/WEB-INF/templates/week.tpl @@ -39,7 +39,7 @@ function fillDropdowns() { {$forms.weekTimeForm.onBehalfUser.control}
{$i18n.label.client}{if $user->isPluginEnabled('cm')} (*){/if}: {$forms.weekTimeForm.client.control}