From 1c962161585180f8a9f963d05a2a87b78a5a37a5 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Sat, 22 Dec 2018 15:24:19 +0000 Subject: [PATCH] Added quota output on time.php. --- WEB-INF/templates/footer.tpl | 2 +- WEB-INF/templates/time.tpl | 2 +- time.php | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 44b5b180..e9a9414d 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
- - + {if $over_quota} {else} diff --git a/time.php b/time.php index 8dbffecf..7252f476 100644 --- a/time.php +++ b/time.php @@ -93,6 +93,7 @@ if ($user->isPluginEnabled('mq')){ $minutes_left = $month_quota_minutes - $month_total_minutes; $smarty->assign('month_total', $month_total); + $smarty->assign('month_quota', ttTimeHelper::toAbsDuration($month_quota_minutes)); $smarty->assign('over_balance', $balance_left < 0); $smarty->assign('balance_remaining', ttTimeHelper::toAbsDuration($balance_left)); $smarty->assign('over_quota', $minutes_left < 0); -- 2.20.1
 Anuko Time Tracker 1.18.35.4680 | Copyright © Anuko | +  Anuko Time Tracker 1.18.35.4681 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/WEB-INF/templates/time.tpl b/WEB-INF/templates/time.tpl index 7a360800..bf28c509 100644 --- a/WEB-INF/templates/time.tpl +++ b/WEB-INF/templates/time.tpl @@ -165,7 +165,7 @@ {/if}
{$i18n.label.quota}: {$month_quota}{$i18n.form.time.over_quota}: {$quota_remaining}