Commit | Line | Data |
cce8c9b6 |
1 | <table class='history listing'> |
2 | <thead> |
3 | <tr> |
4 | <th>sha1</th> |
5 | <th>time</th> |
6 | <th>author</th> |
7 | <th>message</th> |
8 | <th>actions</th> |
9 | </tr> |
10 | </thead> |
11 | |
12 | <tfoot> |
13 | <tr> |
14 | <td>sha1</td> |
15 | <td>time</td> |
16 | <td>author</td> |
17 | <td>message</td> |
18 | <td>actions</td> |
19 | </tr> |
20 | </tfoot> |
21 | |
22 | <tbody> |
23 | [% FOREACH line IN log_lines %] |
24 | <tr> |
7e8a7295 |
25 | <td class='sha1' title='[% line.sha1 %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %]</td> |
cce8c9b6 |
26 | <td class='time-since' title='[% line.authored_time %]'>[% time_since(line.authored_time) %]</td> |
27 | <td class='author'>[% line.author.name | html %]</td> |
28 | <td> |
29 | [% short_cmt(line.comment) | html %] |
30 | [% INCLUDE '_refs.tt2' object = line.0 %] |
31 | </td> |
32 | <td class='action-list'> |
33 | [% IF filetype == 'tree' %] |
34 | <a href="[% c.uri_for("tree", {h=line.sha1, hb=line.sha1}) %]">tree</a> |
35 | [% ELSIF filetype == 'blob' %] |
36 | <a href="[% c.uri_for("blob", {hb=line.sha1, f=filename}) %]">blob</a> |
37 | [% END %] |
38 | <a href="[% c.uri_for("commitdiff", {h=line.sha1}) %]">commitdiff</a> |
39 | [% IF filetype == 'blob' %] |
40 | <a href="[% c.uri_for("blobdiff", {hb="HEAD", hpb=line.sha1, f=filename}) %]">diff to current</a> |
41 | [% END %] |
42 | </td> |
43 | </tr> |
44 | [% END %] |
45 | </tbody> |
46 | </table> |