Added quota output on time.php.
authorNik Okuntseff <support@anuko.com>
Sat, 22 Dec 2018 15:24:19 +0000 (15:24 +0000)
committerNik Okuntseff <support@anuko.com>
Sat, 22 Dec 2018 15:24:19 +0000 (15:24 +0000)
WEB-INF/templates/footer.tpl
WEB-INF/templates/time.tpl
time.php

index 44b5b18..e9a9414 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.35.4680 | 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.35.4681 | 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 7a36080..bf28c50 100644 (file)
     {/if}
   </tr>
   <tr>
-    <td></td>
+    <td align="left">{$i18n.label.quota}: {$month_quota}</td>
     {if $over_quota}
     <td align="right">{$i18n.form.time.over_quota}: <span style="color: green;">{$quota_remaining}</span></td>
     {else}
index 8dbffec..7252f47 100644 (file)
--- 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);