#import koji #from kojiweb import util #attr _PASSTHROUGH = ['userID', 'tagID', 'packageID', 'order', 'prefix', 'state', 'inherited', 'latest', 'type'] #include "includes/header.chtml"

#if $latest then 'Latest ' else ''##if $state != None then $util.stateName($state).capitalize() + ' ' else ''##if $type then $type.capitalize() + ' ' else ''#Builds#if $package then ' of %s' % ($package.id, $package.name) else ''##if $prefix then ' starting with "%s"' % $prefix else ''##if $user then ' by %s' % ($user.id, $user.name) else ''##if $tag then ' in tag %s' % ($tag.id, $tag.name) else ''#

#if $tag #end if #if $len($builds) > 0 #for $build in $builds #if $tag #end if #set $stateName = $util.stateName($build.state) #end for #else #end if
#if $tag #end if
#if $tag Latest: #else State: #end if Built by:
Type: Inherited:
#for $char in $chars #if $prefix == $char $char #else $char #end if | #end for #if $prefix all #else all #end if
#if $len($buildPages) > 1
Page:
#end if #if $buildStart > 0 <<< #end if #if $totalBuilds != 0 Builds #echo $buildStart + 1 # through #echo $buildStart + $buildCount # of $totalBuilds #end if #if $buildStart + $buildCount < $totalBuilds >>> #end if
ID $util.sortImage($self, 'build_id') NVR $util.sortImage($self, 'nvr')Tag $util.sortImage($self, 'tag_name')Built by $util.sortImage($self, 'owner_name') Finished $util.sortImage($self, 'completion_time') State $util.sortImage($self, 'state')
$build.build_id $koji.buildLabel($build)$build.tag_name$build.owner_name $util.formatTime($build.completion_time)$util.stateImage($build.state)
No builds
#if $len($buildPages) > 1
Page:
#end if #if $buildStart > 0 <<< #end if #if $totalBuilds != 0 Builds #echo $buildStart + 1 # through #echo $buildStart + $buildCount # of $totalBuilds #end if #if $buildStart + $buildCount < $totalBuilds >>> #end if
#include "includes/footer.chtml"