summaryrefslogtreecommitdiffstats
path: root/application/modules/dev/views/scripts/bootos
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/dev/views/scripts/bootos')
-rw-r--r--application/modules/dev/views/scripts/bootos/index.phtml18
1 files changed, 16 insertions, 2 deletions
diff --git a/application/modules/dev/views/scripts/bootos/index.phtml b/application/modules/dev/views/scripts/bootos/index.phtml
index c5970b6..f76938d 100644
--- a/application/modules/dev/views/scripts/bootos/index.phtml
+++ b/application/modules/dev/views/scripts/bootos/index.phtml
@@ -17,7 +17,7 @@
<th>Changed</th>
<th>Expires</th>
<th>Public</th>
- <th colspan=2>Actions</th>
+ <th colspan=3>Actions</th>
</tr>
<?php if(count($this->bootoslist)==0)
echo "</table> There are no BootOs's to display." ?>
@@ -35,6 +35,20 @@
<td><?php echo $this->escape(date('Y-m-d H:i:s', $bootos->getCreated())); ?></td>
<td><?php echo $this->escape($bootos->getExpires()); ?></td>
<td><?php echo $this->escape($bootos->getPublic()); ?></td>
+ <?php if($this->update[$bootos->getID()]==true): ?>
+ <td class='action'><a
+ href="<?php echo $this->url(
+ array(
+ 'module' => 'dev',
+ 'controller' => 'bootos',
+ 'action' => 'updatebootos',
+ 'bootosID' => $bootos->getID()
+ ),
+ 'default',
+ true, false) ?>"><img src='/media/img/update.png' alt='Updates available' /></a></td>
+ <?php else: ?>
+ <td class='action'><img src='/media/img/update_grey.png' alt='No updates available' /></td>
+ <?php endif; ?>
<td class='action'><a
href="<?php echo $this->url(
array(
@@ -54,7 +68,7 @@
'bootosID' => $bootos->getID()
),
'default',
- true) ?>"><img src='/media/img/delete.png' alt='Delete BootOS' /></a></td>
+ true) ?>"><img src='/media/img/delete.png' alt='Delete BootOS' /></a></td>
</tr>
<?php endforeach; ?>
</table>