Merged some functions to help keeping things compact.
[timetracker.git] / WEB-INF / templates / projects.tpl
index e21a8f2..81ef96b 100644 (file)
@@ -97,7 +97,7 @@
         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
           <td>{$project.name|escape}</td>
           <td>{$project.description|escape}</td>
-      {if $show_files}
+      {if $show_files && $project.has_files}
           <td><a href="project_files.php?id={$project.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_files.png"></a></td>
       {/if}
         </tr>