]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 252943: broken title in interdiff. Adds reasonable title while
authorkiko%async.com.br <>
Tue, 27 Jul 2004 22:55:16 +0000 (22:55 +0000)
committerkiko%async.com.br <>
Tue, 27 Jul 2004 22:55:16 +0000 (22:55 +0000)
doing an interdiff, and fixes some broken and confusing double-linking         in the text. r=joel, a218=justdave.

template/en/default/attachment/diff-header.html.tmpl

index ff0f414a74e82b12e1ded7ecd7aa7bed0ce33bde..3d96d0f7024a2b0fbcb47bceceff9c057949b4b5 100644 (file)
 [% 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 
       <a href="[% old_url %]">[% old_desc FILTER html %]</a>
-      (<a href="[% old_url %]">#[% oldid %]</a>)
+      (#[% oldid %])
       and 
       <a href="[% new_url %]">[% new_desc FILTER html %]</a>
-      (<a href="[% new_url %]">#[% newid %]</a>)
+      (#[% newid %])
     [% END %]
     for <a href="show_bug.cgi?id=[% bugid %]">[% terms.Bug %] #[% bugid %]</a>
   [% END %]