$vars->{'attachments'} = \@attachments;
$vars->{'bugassignee_id'} = $assignee_id;
$vars->{'bugsummary'} = $bugsummary;
+ $vars->{'GetBugLink'} = \&GetBugLink;
# Return the appropriate HTTP response headers.
print "Content-Type: text/html\n\n";
$vars->{'attachments'} = \@attachments;
$vars->{'bugassignee_id'} = $assignee_id;
$vars->{'bugsummary'} = $bugsummary;
+ $vars->{'GetBugLink'} = \&GetBugLink;
# Return the appropriate HTTP response headers.
print "Content-Type: text/html\n\n";
$vars->{'isprivate'} = $isprivate;
$vars->{'isviewable'} = $isviewable;
$vars->{'attachments'} = \@bugattachments;
+ $vars->{'GetBugLink'} = \&GetBugLink;
# Return the appropriate HTTP response headers.
print "Content-Type: text/html\n\n";
[%# Define strings that will serve as the title and header of this page %]
[% title = BLOCK %]Create New Attachment for Bug #[% bugid %][% END %]
-[% h1 = BLOCK %]Create New Attachment for <a href="show_bug.cgi?id=[% bugid %]">Bug #[% bugid %]</a>[% END %]
+[% h1 = BLOCK %]Create New Attachment for
+ [%+ GetBugLink(bugid, "Bug $bugid") %][% END %]
[% h2 = BLOCK %][% bugsummary FILTER html %][% END %]
[% PROCESS global/header.html.tmpl
[%# Define strings that will serve as the title and header of this page %]
[% title = BLOCK %]Edit Attachment #[% attachid %] for Bug #[% bugid %][% END %]
-[% h1 = BLOCK %]Edit Attachment #[% attachid %] for <a href="show_bug.cgi?id=[% bugid %]">Bug #[% bugid %]</a>[% END %]
+[% h1 = BLOCK %]Edit Attachment #[% attachid %] for
+ [%+ GetBugLink(bugid, "Bug $bugid") %][% END %]
[% h2 = BLOCK %][% bugsummary FILTER html %][% END %]
[% PROCESS global/header.html.tmpl
#%]
[% filtered_summary = bugsummary FILTER html %]
+[% h1 = BLOCK %]View All Attachments for
+ [%+ GetBugLink(bugid, "Bug $bugid") %][% END %]
[% PROCESS global/header.html.tmpl
title = "View All Attachments for Bug #$bugid"
- h1 = "View All Attachments for <a href=\"show_bug.cgi?id=$bugid\">Bug #$bugid</a>"
+ h1 = h1
h2 = filtered_summary
style = "
table.attachment_info th { text-align: right; vertical-align: top; }