Made /blob & /blob_plain actions a little more robust.
[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 id='blame'>
11 <table>
12  <thead>
13   <tr>
14    <th>sha1</th>
15    <th>line</th>
16    <th>data</th>
17   </tr>
18  </thead>
19
20  <tfoot>
21   <tr>
22    <td>sha1</td>
23    <td>line</td>
24    <td>data</td>
25   </tr>
26  </tfoot>
27
28  <tbody>
29  [% FOR info IN blame %]
30  <tr class=''>
31    <td class='commit-info'><a title="[% info.commit.author %] on [% info.commit.author_dt %]" href='[% c.uri_for('commit', {h=info.commit.sha1}) %]'>[% INCLUDE '_chroma_hash.tt2' sha1 = info.commit.sha1.substr(0,7) -%]</a></td>
32    <td class='lineno'><tt>[% info.meta.lineno %]</tt></td>
33    <td><pre>[% info.line | html %]</pre></td>
34  </tr>
35  [% END %]
36  </tbody>
37 </table>
38 </div>