Add button and link to create new device
authorBen Klang <ben@alkaloid.net>
Sat, 2 Jan 2010 05:03:12 +0000 (00:03 -0500)
committerBen Klang <ben@alkaloid.net>
Sat, 2 Jan 2010 05:03:12 +0000 (00:03 -0500)
shout/templates/devices/list.inc
shout/themes/graphics/add-device.png [new file with mode: 0644]

index 49516c0..b8582d6 100644 (file)
@@ -1,4 +1,14 @@
 <div class="header">
+    <ul id="controls">
+        <?php
+        $addurl = Horde::applicationUrl('devices.php');
+        $addurl = Horde_Util::addParameter($addurl, 'action', 'add');
+        ?>
+        <li><a href="<?php echo $addurl; ?>">
+            <?php echo Horde::img('add-device.png'); ?>&nbsp;New Device
+            </a>
+        </li>
+    </ul>
     Context: <?php echo $context; ?>
 </div>
 
diff --git a/shout/themes/graphics/add-device.png b/shout/themes/graphics/add-device.png
new file mode 100644 (file)
index 0000000..faa98d1
Binary files /dev/null and b/shout/themes/graphics/add-device.png differ