[%# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # This Source Code Form is "Incompatible With Secondary Licenses", as # defined by the Mozilla Public License, v. 2.0. #%] [%# This line is really long for a reason: to get rid of any possible textnodes # between the elements. This is necessary because DOM parent-child-sibling # relations can change and screw up the javascript for restoring, collapsing # and expanding. Do not change without testing all three of those. # Also, the first empty row is required because 'table-layout: fixed' only # considers the first row to determine column widths. If a colspan is found, # it then share the width equally among all columns, which we don't want. #%]
[% collapsed ? '(+)' : '(-)' %] [% file.filename FILTER html %] [% IF file.plus_lines %] [% IF file.minus_lines %] (-[% file.minus_lines %] / +[% file.plus_lines %] lines) [% ELSE %] (+[% file.plus_lines %] lines) [% END %] [% ELSE %] [% IF file.minus_lines %] (-[% file.minus_lines %] lines) [% END %] [% END %] | |||||||
[% IF file.is_add %] Added [% ELSIF file.is_remove %] Removed [% ELSE %] [% IF section.old_lines > 1 %] Lines [% section.old_start %]-[% section.old_start + section.old_lines - 1 %] [% ELSE %] Line [% section.old_start %] [% END %] [%+ section.func_info FILTER html IF section.func_info %] [% END %] Link Here | |||||||
---|---|---|---|---|---|---|---|
[% current_line_old %] | [% line FILTER html %] |
[% current_line_new %] | [% line FILTER html %] |
||||
[% current_line_old + i %] | [% group.minus.$i FILTER html %] |
[% ELSIF i == group.minus.size %]
[% rowspan = group.plus.size - group.minus.size %]
1 %] rowspan="[% rowspan FILTER none %]"[% END %]> | 1 %] rowspan="[% rowspan FILTER none %]"[% END %]> | [% END %] [% IF i < group.plus.size %][% current_line_new + i %] | [% group.plus.$i FILTER html %] |
[% ELSIF i == group.plus.size %]
[% rowspan = group.minus.size - group.plus.size %]
1 %] rowspan="[% rowspan FILTER none %]"[% END %]> | 1 %] rowspan="[% rowspan FILTER none %]"[% END %]> | [% END %]
[% current_line_new %] | [% line FILTER html %] |
||||||
1 %] rowspan="[% group.plus.size %]"[% END %]> | 1 %] rowspan="[% group.plus.size %]"[% END %]> | [% END %][% current_line_new %] | [% line FILTER html %] |
||||
[% current_line_old %] | [% line FILTER html %] |
||||||
[% current_line_old %] | [% line FILTER html %] |
[% IF loop.first %]
1 %] rowspan="[% group.minus.size %]"[% END %]> | 1 %] rowspan="[% group.minus.size %]"[% END %]> | [% END %]