Conditionally showing Work plugin depending on WORK_DEBUG constant.
authorNik Okuntseff <support@anuko.com>
Wed, 17 Apr 2019 19:55:27 +0000 (19:55 +0000)
committerNik Okuntseff <support@anuko.com>
Wed, 17 Apr 2019 19:55:27 +0000 (19:55 +0000)
WEB-INF/templates/footer.tpl
WEB-INF/templates/plugins.tpl

index 6e2e202..131e8c6 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.65.4955 | 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.65.4956 | 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 97f7cdb..56868a6 100644 (file)
@@ -162,10 +162,12 @@ function handlePluginCheckboxes() {
             <td align="right" nowrap>{$forms.pluginsForm.attachments.control}</td>
             <td><label for="attachments">{$i18n.label.attachments}</label> <span id="attachments_doc"><a href="https://www.anuko.com/lp/tt_31.htm" target="_blank">{$i18n.label.what_is_it}</a></span></td>
           </tr>
+{if isTrue('WORK_DEBUG')}
           <tr>
             <td align="right" nowrap>{$forms.pluginsForm.work.control}</td>
             <td><label for="work">{$i18n.title.work}</label> <span id="work_doc"><a href="https://www.anuko.com/lp/tt_34.htm" target="_blank">{$i18n.label.what_is_it}</a></span></td>
           </tr>
+{/if}
           <tr>
             <td colspan="2">&nbsp;</td>
           </tr>