Fleshed out the /blame action a bit more.
[catagits/Gitalist.git] / root / blame.tt2
1 [% PROCESS 'nav/actions.tt2' object = head %]
2 [% IF object.type == 'commit' %]
3 <div class='commit-message'>
4 [% head.comment.substr(0, 85) %] ...
5 </div>
6 [% END %]
7
8 <h3>BLOB PATH</h3>
9
10 <div class='blame'>
11 <table>
12 [% FOR info IN blame %]
13 <tr>
14   <td><a title="[% info.commit.author %] on [% info.commit.author_dt %]" href='[% c.uri_for('commit', {h=info.commit.sha1}) %]'>[% info.commit.sha1.substr(0,6) %]</a></td>
15   <td>[% info.meta.lineno %]</td>
16   <td><pre class='blame-line'>[% info.line | html %]</pre></td>
17 </tr>
18 [% END %]
19 </table>
20 </div>