From 1fa0664452e50f89b1a8292519dcd3f4040c8aff Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Thu, 26 Sep 2024 22:34:23 -0400 Subject: [PATCH] fix tasks description --- www/kojiweb/tasks.chtml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/www/kojiweb/tasks.chtml b/www/kojiweb/tasks.chtml index 71b5a60a..029f3bf3 100644 --- a/www/kojiweb/tasks.chtml +++ b/www/kojiweb/tasks.chtml @@ -43,7 +43,27 @@ All #include "includes/header.chtml" -

$headerPrefix($state) #if $view == 'toplevel' then 'toplevel' else ''# #if $method != 'all' then $method else ''# Tasks#if $ownerObj then S(' 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 ''#

+#@util.safe_return +#def getDescription() +$headerPrefix($state) +#if $view == 'toplevel' +toplevel +#end if +#if $method != 'all' +$method Tasks +#end if +#if $ownerObj +owned by $ownerObj.name +#end if +#if $host +on host $host.name +#end if +#if $channel +in channel $channel.name +#end if +#end def + +

$getDescription()