]> git.donarmstrong.com Git - debbugs.git/commitdiff
* add support for archive days output in short bug status
authorDon Armstrong <don@donarmstrong.com>
Sun, 10 Aug 2008 15:46:35 +0000 (08:46 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sun, 10 Aug 2008 15:46:35 +0000 (08:46 -0700)
templates/en_US/cgi/short_bug_status.tmpl

index 30345797f09989ad92608fa1352185a503b4b407..0b8e49f3ccd6e71df0998f0db5639e9a85c54b9d 100644 (file)
      $output .= q(<span><strong>Done:</strong> ).html_escape($status{done}).q(;</span> )
   }
   $output;
+}{ my $output = '';
+   my $days = $status{archive_days};
+   if ($days >= 0 and defined $status{location} and $status{location} ne 'archive') {
+       $output .= ";\n<strong>Can be archived" .
+          ( $days == 0 ? " today" : $days == 1 ? " in $days day" : " in $days days" ) .
+              "</strong>";
+   }
+   elsif (defined $status{location} and $status{location} eq 'archived') {
+       $output .= ";\n<strong>Archived.</strong>";
+   }
+   $output;
 }{ my $output = '';
   if (@{$status{blockedby_array}}) {
      $output .= q(<span>Fix blocked by ).