Insert "All Branches" option.
authorJan Schneider <jan@horde.org>
Thu, 12 Aug 2010 21:47:05 +0000 (23:47 +0200)
committerJan Schneider <jan@horde.org>
Thu, 12 Aug 2010 21:47:05 +0000 (23:47 +0200)
chora/templates/directory/header.inc

index e2ff29d..4a70a57 100644 (file)
@@ -6,6 +6,7 @@
    <?php echo Chora::formInputs() ?>
    <input type="hidden" name="f" value="<?php echo htmlspecialchars(Horde_Util::getFormData('f')) ?>" />
    <select name="onb" onchange="this.form.submit()">
+    <option value="0"<?php if (!isset($onb) || !$onb) echo ' selected="selected"' ?>><?php echo _("All Branches") ?></option>
 <?php foreach ($branches as $branch): ?>
     <option value="<?php echo htmlspecialchars($branch) ?>"<?php echo ($branch == $onb) ? ' selected="selected"' : '' ?>><?php echo htmlspecialchars($branch) ?></option>
 <?php endforeach; ?>