#import koji #from kojiweb import util #def printChildren($taskID, $childMap) #set $iter = 0 #set $children = $childMap[$str($taskID)] #if $children #end if #end def #def headerPrefix($state) #if $state == 'active' Active #elif $state == 'all' All #else #echo $state.capitalize() #end if #end def #attr _PASSTHROUGH = ['owner', 'state', 'view', 'method', 'hostID', 'channelID', 'order'] #include "includes/header.chtml"

$headerPrefix($state) #if $view == 'toplevel' then 'toplevel' else ''# #if $method != 'all' then $method else ''# Tasks#if $ownerObj then ' owned by %s' % ($ownerObj.id, $ownerObj.name) else ''##if $host then ' on host %s' % ($host.id, $host.name) else ''# #if $channel then ' in channel %s' % ($channel.id, $channel.name) else ''#

#if $len($tasks) > 0 #for $task in $tasks #set $taskState = $util.taskState($task.state) #if $treeDisplay then ' ' else ''#$koji.taskLabel($task) #if $treeDisplay $printChildren($task.id, $task.descendents) #end if #end for #else #end if
State: Owner:
Method: View:
#if $len($taskPages) > 1
Page:
#end if #if $taskStart > 0 <<< #end if #if $totalTasks != 0 Tasks #echo $taskStart + 1 # through #echo $taskStart + $taskCount # of $totalTasks #end if #if $taskStart + $taskCount < $totalTasks >>> #end if
ID $util.sortImage($self, 'id') Type $util.sortImage($self, 'method') Owner $util.sortImage($self, 'owner') Arch $util.sortImage($self, 'arch') Finished $util.sortImage($self, 'completion_time') State $util.sortImage($self, 'state')
$task.id #if $task.owner_type == $koji.USERTYPES['HOST'] $task.owner_name #else $task.owner_name #end if $task.arch $util.formatTime($task.completion_time) $util.imageTag($taskState)
No tasks
#if $len($taskPages) > 1
Page:
#end if #if $taskStart > 0 <<< #end if #if $totalTasks != 0 Tasks #echo $taskStart + 1 # through #echo $taskStart + $taskCount # of $totalTasks #end if #if $taskStart + $taskCount < $totalTasks >>> #end if
#include "includes/footer.chtml"