]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 319718: Make summary the link title for bookmarkable templates.
authorwurblzap%gmail.com <>
Wed, 14 Dec 2005 04:43:49 +0000 (04:43 +0000)
committerwurblzap%gmail.com <>
Wed, 14 Dec 2005 04:43:49 +0000 (04:43 +0000)
Patch by Marc Schumann <wurblzap@gmail.com>,
r=timeless, a=justdave

post_bug.cgi
template/en/default/bug/create/make-template.html.tmpl

index 5ee8971c43249f7f66b0f362a3abc96272409854..96451592674a1aa5e74a0e30820fa7223b1f810f 100755 (executable)
@@ -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)
index f118f7f130f3176f20150f25b19790c466730d02..bf1e743c0e87949fe4ce4b662afc69018c1b907e 100644 (file)
   # Rights Reserved.
   #
   # Contributor(s): Gervase Markham <gerv@gerv.net>
+  #                 Marc Schumann <wurblzap@gmail.com>
+  #%]
+
+[%# INTERFACE:
+  # url: URL to a pre-filled bug entry form.
+  # short_desc: Bug summary as entered in the form.
   #%]
 
 [% PROCESS global/variables.none.tmpl %]
 
 <p>
   You can bookmark this link:
-  &ldquo;<a href="enter_bug.cgi?[% url FILTER html %]">[% terms.Bug %]
-  entry template</a>&rdquo;.
+  &ldquo;<a href="enter_bug.cgi?[% url FILTER html %]">
+  [% IF short_desc %]
+    [% short_desc FILTER html %]
+  [% ELSE %]
+    [% terms.Bug %] entry template
+  [% END %]</a>&rdquo;.
   This bookmark will bring up the <em>Enter [% terms.Bug %]</em> page with the
   fields initialized as you've requested.
 </p>