From a4bd45a80d32295bc762c9f254de60d95009a704 Mon Sep 17 00:00:00 2001 From: Don Armstrong <don@volo> Date: Sun, 22 Oct 2006 17:24:09 -0700 Subject: [PATCH] show version graph link on bugreport.cgi --- cgi/bugreport.cgi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cgi/bugreport.cgi b/cgi/bugreport.cgi index a401f7c9..7dd91d44 100755 --- a/cgi/bugreport.cgi +++ b/cgi/bugreport.cgi @@ -19,7 +19,7 @@ require '/etc/debbugs/text'; # for read_log_records use Debbugs::Log; use Debbugs::MIME qw(convert_to_utf8 decode_rfc1522 create_mime_message); -use Debbugs::CGI qw(:url :html); +use Debbugs::CGI qw(:url :html version_url); use Scalar::Util qw(looks_like_number); @@ -275,6 +275,12 @@ if (@{$status{fixed_versions}}) { $fixedtext .= ' by ' . htmlsanit(decode_rfc1522($status{done})); } push @descstates, $fixedtext; + push @descstates, '<a href="'. + version_url($status{package}, + $status{found_versions}, + $status{fixed_versions}, + ).qq{">Version Graph</a>}; + } elsif (length($status{done})) { push @descstates, "<strong>Done:</strong> ".htmlsanit(decode_rfc1522($status{done})); } elsif (length($status{forwarded})) { -- 2.39.5