]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 156169: Bug number styling issues in attachment viewer/editor. r=joel, a=justdave
authorjouni%heikniemi.net <>
Tue, 14 Jan 2003 14:36:09 +0000 (14:36 +0000)
committerjouni%heikniemi.net <>
Tue, 14 Jan 2003 14:36:09 +0000 (14:36 +0000)
attachment.cgi
template/en/default/attachment/create.html.tmpl
template/en/default/attachment/edit.html.tmpl
template/en/default/attachment/show-multiple.html.tmpl

index 17e237564c71c71d8c2d428ac0555291b23429c3..bb166e2f8ba77a2be6c4f77237cf27d4ac16dfa1 100755 (executable)
@@ -426,6 +426,7 @@ sub viewall
   $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";
@@ -470,6 +471,7 @@ sub enter
   $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";
@@ -653,6 +655,7 @@ sub edit
   $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";
index f7cfe21f986bedd42ccca9cd68ef55a3f7622f72..a298df5a94281a41a2a98bc682870f4b9b391166 100644 (file)
@@ -21,7 +21,8 @@
 
 [%# 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 
index 8cd92774bb118e2f0515f8062a0c89f2929f653d..57d99f766704e0295ba5189b957161193b8b2d95 100644 (file)
@@ -21,7 +21,8 @@
 
 [%# 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 
index 53149085a8db94bc2cbc82c02517a07040fcd95e..b137504e56103e96f186326c01a69bfb6c5bf252 100644 (file)
   #%]
 
 [% 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; }