]> wagnertech.de Git - timetracker.git/commitdiff
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 44b5b1800bec2d4b72f2a4d628fd068992cfdb98..e9a9414d33e8d7059a046698bb4e4f74dca192e4 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 7a360800b1b86ab61f3a7aea349e7d4e4628099d..bf28c509135b23af57e73badb34d83f77fbd39df 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 8dbffecfbe4006e6dd7afb5f06087c647dd92b11..7252f476ff1fd420e7e057c6b151ecb60e150f77 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);