From: kiko%async.com.br <> Date: Tue, 27 Jul 2004 22:55:16 +0000 (+0000) Subject: Fix for bug 252943: broken title in interdiff. Adds reasonable title while X-Git-Tag: bugzilla-2.18rc2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=407f4b9852ca91a7c6c425fef310222d738b66bb;p=thirdparty%2Fbugzilla.git Fix for bug 252943: broken title in interdiff. Adds reasonable title while doing an interdiff, and fixes some broken and confusing double-linking in the text. r=joel, a218=justdave. --- diff --git a/template/en/default/attachment/diff-header.html.tmpl b/template/en/default/attachment/diff-header.html.tmpl index ff0f414a74..3d96d0f702 100644 --- a/template/en/default/attachment/diff-header.html.tmpl +++ b/template/en/default/attachment/diff-header.html.tmpl @@ -24,7 +24,11 @@ [% PROCESS global/variables.none.tmpl %] [% title = BLOCK %] - Attachment #[% attachid %] for [% terms.Bug %] #[% bugid %] + [% IF attachid %] +Attachment #[% attachid %] for [% terms.Bug %] #[% bugid %] + [% ELSE %] +Interdiff of #[% oldid %] and #[% newid %] for #[% terms.Bug %] #[% bugid %] + [% END %] [% END %] [% style = BLOCK %] @@ -187,14 +191,15 @@ tbody.file pre:empty { [% IF attachid %] [% description FILTER html %] (#[% attachid %]) [% ELSE %] + [% USE url %] [% old_url = url('attachment.cgi', action = 'diff', id = oldid) %] [% new_url = url('attachment.cgi', action = 'diff', id = newid) %] Diff Between [% old_desc FILTER html %] - (#[% oldid %]) + (#[% oldid %]) and [% new_desc FILTER html %] - (#[% newid %]) + (#[% newid %]) [% END %] for [% terms.Bug %] #[% bugid %] [% END %]