Work in progress on project attachments.
authorNik Okuntseff <support@anuko.com>
Fri, 15 Mar 2019 19:55:24 +0000 (19:55 +0000)
committerNik Okuntseff <support@anuko.com>
Fri, 15 Mar 2019 19:55:24 +0000 (19:55 +0000)
WEB-INF/templates/footer.tpl
WEB-INF/templates/projects.tpl
projects.php

index 62ae7a5..a476e80 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.58.4869 | 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.58.4870 | 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 5899936..0b400b1 100644 (file)
@@ -13,6 +13,9 @@
         <tr>
           <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
           <td width="35%" class="tableHeader">{$i18n.label.description}</td>
+  {if $show_files}
+          <td class="tableHeader">{$i18n.label.files}</td>
+  {/if}
           <td class="tableHeader">{$i18n.label.edit}</td>
           <td class="tableHeader">{$i18n.label.delete}</td>
         </tr>
@@ -21,6 +24,9 @@
         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
           <td>{$project.name|escape}</td>
           <td>{$project.description|escape}</td>
+      {if $show_files}
+          <td><a href="project_files.php?id={$project.id}">{$i18n.label.view}</a></td>
+      {/if}
           <td><a href="project_edit.php?id={$project.id}">{$i18n.label.edit}</a></td>
           <td><a href="project_delete.php?id={$project.id}">{$i18n.label.delete}</a></td>
         </tr>
@@ -42,6 +48,9 @@
         <tr>
           <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
           <td width="35%" class="tableHeader">{$i18n.label.description}</td>
+    {if $show_files}
+          <td class="tableHeader">{$i18n.label.files}</td>
+    {/if}
           <td class="tableHeader">{$i18n.label.edit}</td>
           <td class="tableHeader">{$i18n.label.delete}</td>
         </tr>
@@ -49,6 +58,9 @@
         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
           <td>{$project.name|escape}</td>
           <td>{$project.description|escape}</td>
+      {if $show_files}
+          <td><a href="project_files.php?id={$project.id}">{$i18n.label.view}</a></td>
+      {/if}
           <td><a href="project_edit.php?id={$project.id}">{$i18n.label.edit}</a></td>
           <td><a href="project_delete.php?id={$project.id}">{$i18n.label.delete}</a></td>
         </tr>
         <tr>
           <td class="tableHeader">{$i18n.label.thing_name}</td>
           <td class="tableHeader">{$i18n.label.description}</td>
+    {if $show_files}
+          <td class="tableHeader">{$i18n.label.files}</td>
+    {/if}
         </tr>
   {if $active_projects}
     {foreach $active_projects as $project}
         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
           <td>{$project.name|escape}</td>
           <td>{$project.description|escape}</td>
+      {if $show_files}
+          <td><a href="project_files.php?id={$project.id}">{$i18n.label.view}</a></td>
+      {/if}
         </tr>
     {/foreach}
   {/if}
index 5b56236..97a86ba 100644 (file)
@@ -49,6 +49,7 @@ if($user->can('manage_projects')) {
 
 $smarty->assign('active_projects', $active_projects);
 $smarty->assign('inactive_projects', $inactive_projects);
+$smarty->assign('show_files', $user->isPluginEnabled('at'));
 $smarty->assign('title', $i18n->get('title.projects'));
 $smarty->assign('content_page_name', 'projects.tpl');
 $smarty->display('index.tpl');