From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2804 invoked from network); 16 Sep 2002 13:48:05 -0000 Received: from unknown (HELO monty-python.gnu.org) (199.232.76.173) by sources.redhat.com with SMTP; 16 Sep 2002 13:48:05 -0000 Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17qwEO-000794-00; Mon, 16 Sep 2002 09:48:04 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17qwDm-00075B-00 for help-gnats@gnu.org; Mon, 16 Sep 2002 09:47:26 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17qwDk-00074s-00 for help-gnats@gnu.org; Mon, 16 Sep 2002 09:47:25 -0400 Received: from claven.astro.princeton.edu ([128.112.25.10]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17qwDj-00074m-00 for help-gnats@gnu.org; Mon, 16 Sep 2002 09:47:23 -0400 Received: from wire7.Princeton.EDU (IDENT:b2JtuEITUVpqBWMUXAEslfX2f6j+e1Q8@wire7 [128.112.24.203]) by claven.astro.princeton.edu (8.11.6/8.11.6) with ESMTP id g8GDlLG02669 for ; Mon, 16 Sep 2002 09:47:21 -0400 Received: (from rhl@localhost) by wire7.Princeton.EDU (8.11.6/8.11.2) id g8GDlLS28141; Mon, 16 Sep 2002 09:47:21 -0400 From: Robert Lupton the Good MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15749.57577.255179.298827@wire7.Princeton.EDU> To: help-gnats@gnu.org Subject: patch for gnatsweb.pl In-Reply-To: <20020915103254.22538.88942.Mailman@monty-python.gnu.org> References: <20020915103254.22538.88942.Mailman@monty-python.gnu.org> X-Mailer: VM 7.03 under Emacs 20.7.1 Sender: help-gnats-admin@gnu.org Errors-To: help-gnats-admin@gnu.org X-BeenThere: help-gnats@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion about GNU GNATS List-Archive: Date: Mon, 16 Sep 2002 07:24:00 -0000 X-SW-Source: 2002-q3/txt/msg00085.txt.bz2 (This is my "patch.5") This patch: Includes the PR number in the title of the page when viewing/editing a PR. I find this useful while e.g. checking in the patch and I simply want to know the PR number. R *** gnatsweb.pl Thu Sep 12 08:59:55 2002 --- /u/dss/cgi-bin/gnatsweb-v4.pl Thu Sep 12 09:28:11 2002 *************** *** 1346,1357 **** sub view { my($viewaudit, $tmp) = @_; ! my $page = 'View PR'; page_start_html($page); - # $pr must be 'local' to be available to site callback - local($pr) = $q->param('pr'); # strip out leading category (and any other non-digit trash) from $pr $pr =~ s/\D//g; --- 1346,1357 ---- sub view { my($viewaudit, $tmp) = @_; + # $pr must be 'local' to be available to site callback + local($pr) = $q->param('pr'); ! my $page = "View PR $pr"; page_start_html($page); # strip out leading category (and any other non-digit trash) from $pr $pr =~ s/\D//g; *************** *** 1472,1483 **** # sub edit { ! my $page = 'Edit PR'; page_start_html($page); #my $debug = 0; - my($pr) = $q->param('pr'); # strip out leading category (and any other non-digit trash) from # $pr, since it will unduly confuse gnats when we try to submit the --- 1472,1484 ---- # sub edit { ! my($pr) = $q->param('pr'); ! ! my $page = "Edit PR $pr"; page_start_html($page); #my $debug = 0; # strip out leading category (and any other non-digit trash) from # $pr, since it will unduly confuse gnats when we try to submit the _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnats