Made the blame view a bit more informative.
[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 [% INCLUDE 'nav/path.tt2' %]
9
10 <div id='blame'>
11 <table>
12  <thead>
13   <tr>
14    <th>sha1</th>
15    <th>author</th>
16    <th>date</th>
17    <th></th>
18    <th class='data'>data</th>
19   </tr>
20  </thead>
21
22  <tfoot>
23   <tr>
24    <td>sha1</td>
25    <td>author</td>
26    <td>date</td>
27    <td></td>
28    <td class='data'>data</td>
29   </tr>
30  </tfoot>
31
32  <tbody>
33  [% FOR info IN blame %]
34  <tr class=''>
35    <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>
36    <td class='author'>[% info.commit.author %]</td>
37    <td class='date'>[% info.commit.author_dt.ymd %]</td>
38    <td class='lineno'><tt>[% info.meta.lineno %]</tt></td>
39    <td class='data'><pre>[% info.line | html %]</pre></td>
40  </tr>
41  [% END %]
42  </tbody>
43 </table>
44 </div>