Commit e66be03f authored by wurblzap%gmail.com's avatar wurblzap%gmail.com

Bug 319718: Make summary the link title for bookmarkable templates.

Patch by Marc Schumann <wurblzap@gmail.com>, r=timeless, a=justdave
parent 0363ddf3
......@@ -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)
......
......@@ -17,6 +17,12 @@
# 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 %]
......@@ -28,8 +34,12 @@
<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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment