Commit | Line | Data |
04a4961e |
1 | [% INCLUDE inc/syntax_highlight_css.tt2 %] |
08d8bb08 |
2 | |
3 | <h2>Differences</h2> |
4 | |
5 | <div class="differences"> |
6 | |
9dc3b9a5 |
7 | [% FOREACH item IN diff %] |
08d8bb08 |
8 | |
9 | <h4 id="diff[% loop.count %]" class='diff-head'>diff --git [%# FIXME %] |
3a58f004 |
10 | [% IF !item.src.match('^0+$') %] |
11 | <a href='[% c.uri_for_action("/ref/blob", [Repository.name, item.src]) %]' title="Blob">[% item.a %]</a> |
12 | [% ELSE %] |
13 | [% item.a %] |
14 | [% END %] |
15 | [% IF !item.dst.match('^0+$') %] |
16 | <a href='[% c.uri_for_action("/ref/blob", [Repository.name, item.dst]) %]' title="Blob">[% item.b %]</a> |
17 | [% ELSE %] |
18 | [% item.b %] |
19 | [% END %] |
08d8bb08 |
20 | </h4> |
21 | |
22 | |
08d8bb08 |
23 | <div class='diff-patch'> |
24 | <pre>[% blobs.${loop.index} %]</pre> |
9dc3b9a5 |
25 | </div> |
08d8bb08 |
26 | |
9dc3b9a5 |
27 | <div class='diff-index'> |
08d8bb08 |
28 | [% item.index.replace("index","<b>Index</b>") %] |
9dc3b9a5 |
29 | </div> |
08d8bb08 |
30 | |
9dc3b9a5 |
31 | [% END %] |
08d8bb08 |
32 | |
33 | </div> |