add "Windows" to the Type drop-down list on the Builds page

This commit is contained in:
Mike Bonnet 2010-10-21 14:16:14 -04:00
parent 850c509a2b
commit 9d4a6b2c0e
2 changed files with 8 additions and 3 deletions

View file

@ -42,16 +42,21 @@
#end for
</select>
</td></tr>
#if $tag or $mavenEnabled
#if $tag or $mavenEnabled or $winEnabled
<tr>
#if $mavenEnabled
#if $mavenEnabled or $winEnabled
<td>
<strong>Type</strong>:
</td>
<td>
<select name="type" class="filterlist" onchange="javascript: window.location='builds?type=' + this.value + '$util.passthrough_except($self, 'type')';">
<option value="all" #if not $type then 'selected="selected"' else ''#>all</option>
#if $mavenEnabled
<option value="maven" #if $type == 'maven' then 'selected="selected"' else ''#>Maven</option>
#end if
#if $winEnabled
<option value="win" #if $type == 'win' then 'selected="selected"' else ''#>Windows</option>
#end if
</select>
</td>
#end if

View file

@ -1181,7 +1181,7 @@ def builds(req, userID=None, tagID=None, packageID=None, state=None, order='-bui
values['prefix'] = prefix
values['order'] = order
if type == 'maven':
if type in ('maven', 'win'):
pass
elif type == 'all':
type = None