From f20d8eb57ad19b8e6af6d34a6fd6cbb94c59a69a Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 19 Feb 2007 00:05:59 -0800 Subject: [PATCH] * Show the version graph on the right * Always show the forwarded state even if the bug is fixed * Display the version link if the fixed or found is set at all --- cgi/bugreport.cgi | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/cgi/bugreport.cgi b/cgi/bugreport.cgi index 7c5f2ee..c49902e 100755 --- a/cgi/bugreport.cgi +++ b/cgi/bugreport.cgi @@ -229,6 +229,22 @@ if ($status{severity} eq 'normal') { $showseverity = "Severity: $status{severity};\n"; } +if (@{$status{found_versions}} or @{$status{fixed_versions}}) { + $indexentry.= q(
}; +} + + $indexentry .= "
\n"; $indexentry .= htmlize_packagelinks($status{package}, 0) . ";\n"; @@ -281,7 +297,6 @@ if (@{$status{found_versions}}) { $foundtext .= join ', ', map html_escape($_), @{$status{found_versions}}; push @descstates, $foundtext; } - if (@{$status{fixed_versions}}) { my $fixedtext = 'Fixed in '; $fixedtext .= (@{$status{fixed_versions}} == 1) ? 'version ' : 'versions '; @@ -290,15 +305,21 @@ if (@{$status{fixed_versions}}) { $fixedtext .= ' by ' . html_escape(decode_rfc1522($status{done})); } push @descstates, $fixedtext; - push @descstates, 'Version Graph}; +} -} elsif (length($status{done})) { +if (@{$status{found_versions}} or @{$status{fixed_versions}}) { + push @descstates, 'Version Graph}; +} + +if (length($status{done})) { push @descstates, "Done: ".html_escape(decode_rfc1522($status{done})); -} elsif (length($status{forwarded})) { +} + +if (length($status{forwarded})) { push @descstates, "Forwarded to ".maybelink($status{forwarded}); } -- 2.39.2