Added week total and monthly quotas plugin output to week view.
authoranuko <support@anuko.com>
Sun, 31 Dec 2017 14:48:57 +0000 (14:48 +0000)
committeranuko <support@anuko.com>
Sun, 31 Dec 2017 14:48:57 +0000 (14:48 +0000)
WEB-INF/templates/footer.tpl
WEB-INF/templates/week.tpl

index c7cbc49..1d0b382 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.13.2.3711| Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.13.3.3712| 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 97a5a30..34edf92 100644 (file)
     <td>{$forms.weekTimeForm.week_durations.control}</td>
   </tr>
 </table>
+<table cellpadding="3" cellspacing="1" width="720">
+  <tr>
+    <td align="left">{$i18n.label.week_total}: {$week_total}</td>
+    <td></td>
+  </tr>
+  {if $user->isPluginEnabled('mq')}
+  <tr>
+    <td align="left">{$i18n.label.month_total}: {$month_total}</td>
+    {if $over_quota}
+    <td align="right">{$i18n.form.time.over_quota}: <span style="color: green;">{$quota_remaining}</span></td>
+    {else}
+    <td align="right">{$i18n.form.time.remaining_quota}: <span style="color: red;">{$quota_remaining}</span></td>
+    {/if}
+  </tr>
+  {/if}
+</table>
 <table>
   <tr>
     <td align="center" colspan="2">{$forms.weekTimeForm.btn_submit.control}</td>