#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, $util.escapeHTML($ownerObj.name)) else ''##if $host then ' on host %s' % ($host.id, $util.escapeHTML($host.name)) else ''# #if $channel then ' in channel %s' % ($channel.id, $util.escapeHTML($channel.name)) else ''#

#if $len($tasks) > 0 #for $task in $tasks #set $taskState = $util.taskState($task.state) #if $treeDisplay then ' ' else ''#$util.escapeHTML($koji.taskLabel($task)) #if $treeDisplay $printChildren($task.id, $task.descendents) #end if #end for #else #end if
State: Owner:
Method: View:
#if $taskPages is not None #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 #else
Page:
Tasks #echo $taskStart + 1 # through #echo $taskStart + $taskCount# of ??? >>> #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'] $util.escapeHTML($task.owner_name) #else $util.escapeHTML($task.owner_name) #end if $task.arch $util.formatTime($task.completion_ts) $util.imageTag($taskState)
No tasks
#if $taskPages is not None #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 #else
Page:
Tasks #echo $taskStart + 1 # through #echo $taskStart + $taskCount# of ??? >>> #end if
#include "includes/footer.chtml"