aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/attachment/diff-file.html.tmpl')
-rw-r--r--template/en/default/attachment/diff-file.html.tmpl63
1 files changed, 27 insertions, 36 deletions
diff --git a/template/en/default/attachment/diff-file.html.tmpl b/template/en/default/attachment/diff-file.html.tmpl
index 815b6de1b..af99761a6 100644
--- a/template/en/default/attachment/diff-file.html.tmpl
+++ b/template/en/default/attachment/diff-file.html.tmpl
@@ -14,12 +14,12 @@
# 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.
#%]
-<table class="file_table"><thead><tr><td class="num"></td><td></td><td class="num"></td><td></td></tr><tr><td class="file_head" colspan="4"><a href="#" onclick="return twisty_click(this)">[% collapsed ? '(+)' : '(-)' %]</a><input type="checkbox" name="[% file.filename FILTER html %]"[% collapsed ? '' : ' checked' %] style="display: none">
- [% IF lxr_prefix && !file.is_add %]
- <a href="[% lxr_prefix %]">[% file.filename FILTER html %]</a>
- [% ELSE %]
- [% file.filename FILTER html %]
- [% END %]
+<table class="file_table"><thead><tr><td class="num"></td><td></td><td
+ class="num"></td><td></td></tr><tr><td class="file_head" colspan="4"><a href="#"
+ onclick="return twisty_click(this)">[% collapsed ? '(+)' : '(-)' %]</a><input
+ type="checkbox" name="[% file.filename FILTER html %]"[% collapsed ? '' : ' checked' %]
+ class="bz_default_hidden">
+ [% file.filename FILTER html %]
[% IF file.plus_lines %]
[% IF file.minus_lines %]
(-[% file.minus_lines %]&nbsp;/&nbsp;+[% file.plus_lines %]&nbsp;lines)
@@ -39,36 +39,27 @@ incremental_restore()
[% section_num = 0 %]
[% FOREACH section = sections %]
[% section_num = section_num + 1 %]
- <tr><th colspan="4" class="section_head">
- <table id="[% file.filename FILTER html %]_sec[% section_num %]" cellpadding="0" cellspacing="0">
- <tr><th width="95%" align="left">
- [% IF file.is_add %]
- Added
- [% ELSIF file.is_remove %]
- [% IF bonsai_prefix %]
- <a href="[% bonsai_prefix %]">Removed</a>
- [% ELSE %]
- Removed
- [% END %]
- [% ELSE %]
- [% IF bonsai_prefix %]
- <a href="[% bonsai_prefix %]#[% section.old_start %]">
- [% END %]
- [% IF section.old_lines > 1 %]
- &nbsp;Lines&nbsp;[% section.old_start %]-[% section.old_start +
- section.old_lines - 1 %]
- [% ELSE %]
- Line&nbsp;[% section.old_start %]
- [% END %]
- [% IF bonsai_prefix %]
- </a>
- [% END %]
- &nbsp;&nbsp;[% section.func_info FILTER html IF section.func_info %]
- [% END %]
- </th><th>
- <a href="#[% file.filename FILTER html %]_sec[% section_num %]">Link&nbsp;Here</a>&nbsp;
- </th></tr></table>
- </th></tr>
+ <tr>
+ <th colspan="4" class="section_head">
+ <span id="[% file.filename FILTER html %]_sec[% section_num %]" class="lines_count">
+ [% IF file.is_add %]
+ Added
+ [% ELSIF file.is_remove %]
+ Removed
+ [% ELSE %]
+ [% IF section.old_lines > 1 %]
+ Lines&nbsp;[% section.old_start %]-[% section.old_start + section.old_lines - 1 %]
+ [% ELSE %]
+ Line&nbsp;[% section.old_start %]
+ [% END %]
+ [%+ section.func_info FILTER html IF section.func_info %]
+ [% END %]
+ </span>
+ <span class="link_here">
+ <a href="#[% file.filename FILTER html %]_sec[% section_num %]">Link&nbsp;Here</a>
+ </span>
+ </th>
+ </tr>
[% current_line_old = section.old_start %]
[% current_line_new = section.new_start %]
[% FOREACH group = section.groups %]