summaryrefslogtreecommitdiffstats
path: root/smarty
diff options
context:
space:
mode:
Diffstat (limited to 'smarty')
-rw-r--r--smarty/templates/rpmphp/rpm.tpl14
1 files changed, 8 insertions, 6 deletions
diff --git a/smarty/templates/rpmphp/rpm.tpl b/smarty/templates/rpmphp/rpm.tpl
index 742b07d..b2a4f50 100644
--- a/smarty/templates/rpmphp/rpm.tpl
+++ b/smarty/templates/rpmphp/rpm.tpl
@@ -32,18 +32,20 @@
<option value="%stable"{if $what eq '%stable'} selected="selected"{/if}>All stable</option>
<option value="%all"{if $what eq '%all'} selected="selected"{/if}>All</option>
</optgroup>
+{if $channels|@count gt 1}
<optgroup label="Channel">
-{foreach from=$channels item=o}
+ {foreach from=$channels item=o}
<option value="#{$o}"{if $what eq "#$o"} selected="selected"{/if}>{$o}</option>
-{/foreach}
+ {/foreach}
</optgroup>
+{/if}
+{if $owners|@count gt 1}
<optgroup label="Owner">
-{foreach from=$owners item=o}
+ {foreach from=$owners item=o}
<option value="{$o}"{if $what eq $o} selected="selected"{/if}>{$o}</option>
-{foreachelse}
- <option value="remi">remi</option>
-{/foreach}
+ {/foreach}
</optgroup>
+{/if}
</select>
<input type="submit" value="Filter" />
</fieldset>