- {/if}
- {if $show_approval_status}
- <td>{if $timesheet.approval_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
- {/if}
- <td><a href="timesheet_view.php?id={$timesheet.id}">{$i18n.label.view}</a></td>
- {if !$user->isClient()}
- <td><a href="timesheet_edit.php?id={$timesheet.id}">{$i18n.label.edit}</a></td>
- {/if}
+ {if $timesheet.approve_status == null}
+ <td></td>
+ {else}
+ <td>{if $timesheet.approve_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
+ {/if}
+ {if $show_files}
+ {if $timesheet.has_files}
+ <td><a href="timesheet_files.php?id={$timesheet.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_files.png"></a></td>
+ {else}
+ <td><a href="timesheet_files.php?id={$timesheet.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_file.png"></a></td>
+ {/if}
+ {/if}
+ <td><a href="timesheet_edit.php?id={$timesheet.id}"><img class="table_icon" alt="{$i18n.label.edit}" src="images/icon_edit.png"></a></td>
+ <td><a href="timesheet_delete.php?id={$timesheet.id}"><img class="table_icon" alt="{$i18n.label.delete}" src="images/icon_delete.png"></a></td>