From: Don Armstrong Date: Sun, 10 Aug 2008 15:46:35 +0000 (-0700) Subject: * add support for archive days output in short bug status X-Git-Tag: release/2.6.0~479^2~6 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f05dbc253e5b2adc2192311c68d399420355e33f;p=debbugs.git * add support for archive days output in short bug status --- diff --git a/templates/en_US/cgi/short_bug_status.tmpl b/templates/en_US/cgi/short_bug_status.tmpl index 30345797..0b8e49f3 100644 --- a/templates/en_US/cgi/short_bug_status.tmpl +++ b/templates/en_US/cgi/short_bug_status.tmpl @@ -96,6 +96,17 @@ $output .= q(Done: ).html_escape($status{done}).q(; ) } $output; +}{ my $output = ''; + my $days = $status{archive_days}; + if ($days >= 0 and defined $status{location} and $status{location} ne 'archive') { + $output .= ";\nCan be archived" . + ( $days == 0 ? " today" : $days == 1 ? " in $days day" : " in $days days" ) . + ""; + } + elsif (defined $status{location} and $status{location} eq 'archived') { + $output .= ";\nArchived."; + } + $output; }{ my $output = ''; if (@{$status{blockedby_array}}) { $output .= q(Fix blocked by ).