major design changes - almost there
[catagits/Gitalist.git] / root / fragment / ref / blame.tt2
CommitLineData
571348f6 1[% blame_lines = blob.split("\n") %]
592b68ef 2 [% FOR info IN blame %]
3 <tr class=''>
da29fb44 4 [%-
5 linecolour = info.commit.sha1.substr(0,6);
6 IF info.commit.sha1 != lastsha1;
7 styleinfo = " style='border-top: solid 3px #" _ linecolour _ ";'"; -%]
2cf1e781 8 <td nowrap class='author'[% styleinfo %]>[% info.commit.author %]</td>
9 <td nowrap class='date'[% styleinfo %]>[% info.commit.author_dt.ymd %]</td>
2980657b 10 <td nowrap class='commit-info chroma-hash'[% styleinfo %]><a title="[% info.commit.author %] on [% info.commit.author_dt %]" href='[% c.uri_for_action('/ref/commit', [Repository.name, info.commit.sha1]) %]'>[% linecolour %]</td>
da29fb44 11 [%- ELSE -%]
2cf1e781 12 <td nowrap class='author'></td>
13 <td nowrap class='date'></td>
14 <td nowrap class='commit-info'></td>
da29fb44 15 [%- END -%]
2980657b 16 <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_action('/ref/blame', [Repository.name, info.commit.sha1], filename.to_path ) %]#l[% info.meta.orig_lineno %]'>[% info.meta.lineno %]</a></tt></td>
2cf1e781 17 <td nowrap class='data'><pre>[% blame_lines.${loop.index} %]</pre></td>
da29fb44 18 [% lastsha1 = info.commit.sha1 %]
592b68ef 19 </tr>
20 [% END %]