[%# 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 ? '(+)' : '(-)' %] [% IF lxr_prefix && !file.is_add %] [% file.filename FILTER html %] [% ELSE %] [% file.filename FILTER html %] [% END %] [% 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 %] | |||||||
| |||||||
---|---|---|---|---|---|---|---|
[% 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 %]