From f05dbc253e5b2adc2192311c68d399420355e33f Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sun, 10 Aug 2008 08:46:35 -0700 Subject: [PATCH] * add support for archive days output in short bug status --- templates/en_US/cgi/short_bug_status.tmpl | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 ). -- 2.39.5