From c048675731f016f0b4b7eb1b901ad0c3d8dd69dd Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Thu, 6 Aug 2009 15:02:47 +0000 Subject: Bug 508737: Allow Bugzilla::Template::get_bug_link to take a Bugzilla::Bug object if one is available Patch by Max Kanat-Alexander r=LpSolit, a=LpSolit --- template/en/default/attachment/create.html.tmpl | 2 +- template/en/default/attachment/show-multiple.html.tmpl | 2 +- template/en/default/bug/activity/show.html.tmpl | 4 ++-- template/en/default/bug/process/midair.html.tmpl | 4 ++-- template/en/default/bug/votes/list-for-user.html.tmpl | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) (limited to 'template') diff --git a/template/en/default/attachment/create.html.tmpl b/template/en/default/attachment/create.html.tmpl index f725f1076..c265ae567 100644 --- a/template/en/default/attachment/create.html.tmpl +++ b/template/en/default/attachment/create.html.tmpl @@ -26,7 +26,7 @@ [%# Define strings that will serve as the title and header of this page %] [% title = BLOCK %]Create New Attachment for [% terms.Bug %] #[% bug.bug_id %][% END %] [% header = BLOCK %]Create New Attachment for - [%+ "$terms.Bug $bug.bug_id" FILTER bug_link(bug.bug_id) FILTER none %][% END %] + [%+ "$terms.Bug $bug.bug_id" FILTER bug_link(bug) FILTER none %][% END %] [% subheader = BLOCK %][% bug.short_desc 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 36088c96c..1f8cab88a 100644 --- a/template/en/default/attachment/show-multiple.html.tmpl +++ b/template/en/default/attachment/show-multiple.html.tmpl @@ -21,7 +21,7 @@ [% PROCESS global/variables.none.tmpl %] [% filtered_summary = bugsummary FILTER html %] [% header = BLOCK %]View All Attachments for - [%+ "$terms.Bug $bug.bug_id" FILTER bug_link(bug.bug_id) FILTER none %][% END %] + [%+ "$terms.Bug $bug.id" FILTER bug_link(bug) FILTER none %][% END %] [% title = BLOCK %] View All Attachments for [% terms.Bug %] [%+ bug.bug_id FILTER html %] diff --git a/template/en/default/bug/activity/show.html.tmpl b/template/en/default/bug/activity/show.html.tmpl index a457df018..67ac689ca 100644 --- a/template/en/default/bug/activity/show.html.tmpl +++ b/template/en/default/bug/activity/show.html.tmpl @@ -35,14 +35,14 @@ %]

- [% "Back to $terms.bug $bug.bug_id" FILTER bug_link(bug.bug_id) FILTER none %] + [% "Back to $terms.bug $bug.bug_id" FILTER bug_link(bug) FILTER none %]

[% PROCESS bug/activity/table.html.tmpl %] [% IF operations.size > 0 %]

- [% "Back to $terms.bug $bug.bug_id" FILTER bug_link(bug.bug_id) FILTER none %] + [% "Back to $terms.bug $bug.bug_id" FILTER bug_link(bug) FILTER none %]

[% END %] diff --git a/template/en/default/bug/process/midair.html.tmpl b/template/en/default/bug/process/midair.html.tmpl index ed3be74d3..6e0458f24 100644 --- a/template/en/default/bug/process/midair.html.tmpl +++ b/template/en/default/bug/process/midair.html.tmpl @@ -45,7 +45,7 @@

Someone else has made changes to - [%+ "$terms.bug $bug.id" FILTER bug_link(bug.id) FILTER none %] + [%+ "$terms.bug $bug.id" FILTER bug_link(bug) FILTER none %] at the same time you were trying to. The changes made were:

@@ -101,7 +101,7 @@ You have the following choices: [% END %]
  • Throw away my changes, and - [%+ "revisit $terms.bug $bug.id" FILTER bug_link(bug.id) FILTER none %] + [%+ "revisit $terms.bug $bug.id" FILTER bug_link(bug) FILTER none %]
  • diff --git a/template/en/default/bug/votes/list-for-user.html.tmpl b/template/en/default/bug/votes/list-for-user.html.tmpl index 50dff7d5e..2f97616ed 100644 --- a/template/en/default/bug/votes/list-for-user.html.tmpl +++ b/template/en/default/bug/votes/list-for-user.html.tmpl @@ -126,7 +126,7 @@ [% END %] - [% bug.id FILTER bug_link(bug.id) FILTER none %] + [% bug.id FILTER bug_link(bug) FILTER none %] [% bug.summary FILTER html %] -- cgit v1.2.3-24-g4f1b