summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjouni%heikniemi.net <>2003-01-14 15:36:09 +0100
committerjouni%heikniemi.net <>2003-01-14 15:36:09 +0100
commitf50d2365975b419d62b398af9a886da4f5bcaff4 (patch)
tree8b7786e20c9f5b0cd62e0d9bce39557ff1057bbc
parent723d5098ae36ec5374ff533ce30731a9c3958c58 (diff)
downloadbugzilla-f50d2365975b419d62b398af9a886da4f5bcaff4.tar.gz
bugzilla-f50d2365975b419d62b398af9a886da4f5bcaff4.tar.xz
Bug 156169: Bug number styling issues in attachment viewer/editor. r=joel, a=justdave
-rwxr-xr-xattachment.cgi3
-rw-r--r--template/en/default/attachment/create.html.tmpl3
-rw-r--r--template/en/default/attachment/edit.html.tmpl3
-rw-r--r--template/en/default/attachment/show-multiple.html.tmpl4
4 files changed, 10 insertions, 3 deletions
diff --git a/attachment.cgi b/attachment.cgi
index 17e237564..bb166e2f8 100755
--- a/attachment.cgi
+++ b/attachment.cgi
@@ -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";
diff --git a/template/en/default/attachment/create.html.tmpl b/template/en/default/attachment/create.html.tmpl
index f7cfe21f9..a298df5a9 100644
--- a/template/en/default/attachment/create.html.tmpl
+++ b/template/en/default/attachment/create.html.tmpl
@@ -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
diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl
index 8cd92774b..57d99f766 100644
--- a/template/en/default/attachment/edit.html.tmpl
+++ b/template/en/default/attachment/edit.html.tmpl
@@ -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
diff --git a/template/en/default/attachment/show-multiple.html.tmpl b/template/en/default/attachment/show-multiple.html.tmpl
index 53149085a..b137504e5 100644
--- a/template/en/default/attachment/show-multiple.html.tmpl
+++ b/template/en/default/attachment/show-multiple.html.tmpl
@@ -20,9 +20,11 @@
#%]
[% 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; }