From 3657a967e993091eb375cba7ac8ec009701edafb Mon Sep 17 00:00:00 2001 From: "kiko%async.com.br" Date: Sun, 18 Jul 2004 15:39:49 +0000 Subject: [PATCH] Fix for bug 251898: Add function information to PatchReader output. Added support for the function strings included in unified and contextual diffs, which is included in PatchReader-0.9.5. r=jkeiser, a=justdave. --- .../en/default/attachment/diff-file.html.tmpl | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/webtools/bugzilla/template/en/default/attachment/diff-file.html.tmpl b/webtools/bugzilla/template/en/default/attachment/diff-file.html.tmpl index ffd525db543..a25c1125a7c 100644 --- a/webtools/bugzilla/template/en/default/attachment/diff-file.html.tmpl +++ b/webtools/bugzilla/template/en/default/attachment/diff-file.html.tmpl @@ -24,7 +24,7 @@ # relations can change and screw up the javascript for restoring, collapsing # and expanding. Do not change without testing all three of those. #%] -
[% collapsed ? '(+)' : '(-)' %] + [% FOREACH group = section.groups %] [% IF group.context %]
[% collapsed ? '(+)' : '(-)' %] [% IF lxr_prefix && !file.is_add %] [% file.filename FILTER html %] [% ELSE %] @@ -49,7 +49,9 @@ incremental_restore() [% section_num = 0 %] [% FOREACH section = sections %] [% section_num = section_num + 1 %] -
+
+ +
[% IF file.is_add %] Added [% ELSIF file.is_remove %] @@ -63,15 +65,19 @@ incremental_restore() [% END %] [% IF section.old_lines > 1 %] - Lines [% section.old_start %]-[% section.old_start + section.old_lines - 1 %] +  Lines [% section.old_start %]-[% section.old_start + + section.old_lines - 1 %] [% ELSE %] - Line [% section.old_start %] + Line [% section.old_start %] [% END %] [% IF bonsai_prefix %] [% END %] +   [% section.func_info FILTER html IF section.func_info %] [% END %] - (Link Here) + + Link Here  +