From 25335d1d0a2d44b07be8f3b077f4370e69f0c832 Mon Sep 17 00:00:00 2001 From: "wurblzap%gmail.com" Date: Tue, 13 Dec 2005 20:43:49 +0000 Subject: [PATCH] Bug 319718: Make summary the link title for bookmarkable templates. Patch by Marc Schumann , r=timeless, a=justdave git-svn-id: svn://10.0.0.236/trunk@186013 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/post_bug.cgi | 1 + .../en/default/bug/create/make-template.html.tmpl | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/bugzilla/post_bug.cgi b/mozilla/webtools/bugzilla/post_bug.cgi index 5ee8971c432..96451592674 100755 --- a/mozilla/webtools/bugzilla/post_bug.cgi +++ b/mozilla/webtools/bugzilla/post_bug.cgi @@ -93,6 +93,7 @@ if (defined $cgi->param('product')) { if (defined $cgi->param('maketemplate')) { $vars->{'url'} = $cgi->query_string(); + $vars->{'short_desc'} = $cgi->param('short_desc'); print $cgi->header(); $template->process("bug/create/make-template.html.tmpl", $vars) diff --git a/mozilla/webtools/bugzilla/template/en/default/bug/create/make-template.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/bug/create/make-template.html.tmpl index f118f7f130f..bf1e743c0e8 100644 --- a/mozilla/webtools/bugzilla/template/en/default/bug/create/make-template.html.tmpl +++ b/mozilla/webtools/bugzilla/template/en/default/bug/create/make-template.html.tmpl @@ -17,6 +17,12 @@ # Rights Reserved. # # Contributor(s): Gervase Markham + # Marc Schumann + #%] + +[%# INTERFACE: + # url: URL to a pre-filled bug entry form. + # short_desc: Bug summary as entered in the form. #%] [% PROCESS global/variables.none.tmpl %] @@ -28,8 +34,12 @@

You can bookmark this link: - “[% terms.Bug %] - entry template”. + “ + [% IF short_desc %] + [% short_desc FILTER html %] + [% ELSE %] + [% terms.Bug %] entry template + [% END %]”. This bookmark will bring up the Enter [% terms.Bug %] page with the fields initialized as you've requested.