Fixed charts for negative hours.
[timetracker.git] / WEB-INF / templates / notifications.tpl
index 7daf3dc..3a62e8c 100644 (file)
@@ -2,23 +2,25 @@
 <table cellspacing="0" cellpadding="7" border="0" width="720">
   <tr>
     <td valign="top">
-{if $user->canManageTeam()}
+{if $user->can('manage_advanced_settings')}
       <table cellspacing="1" cellpadding="3" border="0" width="100%">
         <tr>
           <td class="tableHeader">{$i18n.label.thing_name}</td>
-          <td class="tableHeader">{$i18n.label.cron_schedule}</td>
+          <td class="tableHeader">{$i18n.label.schedule}</td>
           <td class="tableHeader">{$i18n.label.email}</td>
-          <td class="tableHeader">{$i18n.label.edit}</td>
-          <td class="tableHeader">{$i18n.label.delete}</td>
+          <td class="tableHeader">{$i18n.label.condition}</td>
+          <td></td>
+          <td></td>
         </tr>
   {if $notifications}
     {foreach $notifications as $notification}
-        <tr bgcolor="{cycle values="#f5f5f5,#dedee5"}">
-          <td>{$notification['name']|escape:'html'}</td>
-          <td>{$notification['cron_spec']|escape:'html'}</td>
-          <td>{$notification['email']|escape:'html'}</td>
-          <td><a href="notification_edit.php?id={$notification['id']}">{$i18n.label.edit}</a></td>
-          <td><a href="notification_delete.php?id={$notification['id']}">{$i18n.label.delete}</a></td>
+        <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
+          <td>{$notification['name']|escape}</td>
+          <td>{$notification['cron_spec']|escape}</td>
+          <td>{$notification['email']|escape}</td>
+          <td>{$notification['report_condition']|escape}</td>
+          <td><a href="notification_edit.php?id={$notification['id']}"><img class="table_icon" alt="{$i18n.label.edit}" src="images/icon_edit.png"></a></td>
+          <td><a href="notification_delete.php?id={$notification['id']}"><img class="table_icon" alt="{$i18n.label.delete}" src="images/icon_delete.png"></a></td>
         </tr>
     {/foreach}
   {/if}