1 [% PROCESS 'nav/actions.tt2' object = head %]
2 [% INCLUDE inc/syntax_highlight_css.tt2 %]
6 [% IF object.type == 'commit' %]
7 <div class='commit-message'>[% short_cmt(head.comment) %]</div>
10 [% INCLUDE 'nav/path.tt2' %]
20 <th class='data'>data</th>
30 <td class='data'>data</td>
35 [% blame_lines = blob.split("\n") %]
36 [% FOR info IN blame %]
39 linecolour = info.commit.sha1.substr(0,6);
40 IF info.commit.sha1 != lastsha1;
41 styleinfo = " style='border-top: solid 3px #" _ linecolour _ ";'"; -%]
42 <td nowrap class='author'[% styleinfo %]>[% info.commit.author %]</td>
43 <td nowrap class='date'[% styleinfo %]>[% info.commit.author_dt.ymd %]</td>
44 <td nowrap class='commit-info chroma-hash'[% styleinfo %]><a title="[% info.commit.author %] on [% info.commit.author_dt %]" href='[% c.uri_for('commit', {h=info.commit.sha1}) %]'>[% linecolour %]</td>
46 <td nowrap class='author'></td>
47 <td nowrap class='date'></td>
48 <td nowrap class='commit-info'></td>
50 <td nowrap class='lineno' id='l[% info.meta.lineno %]' style='border-right: solid 3px #[% linecolour %]; border-left: solid 3px #[% linecolour %];'><tt><a href='[% c.uri_for('blame', {h=info.commit.sha1,f=filename}) %]#l[% info.meta.orig_lineno %]'>[% info.meta.lineno %]</a></tt></td>
51 <td nowrap class='data'><pre>[% blame_lines.${loop.index} %]</pre></td>
52 [% lastsha1 = info.commit.sha1 %]