Move all the templates back into the 'root' directory, otherwise make install will...
[catagits/Gitalist.git] / root / _shortlog.tt2
CommitLineData
790ce598 1<table>
2 <thead>
3 <tr>
4 <td>sha1</td>
5 <td>time</td>
6 <td>author</td>
7 <td>message</td>
8 <td>actions</td>
9 </tr>
10 </thead>
11
12 <tbody>
13 [% FOREACH line IN log_lines %]
14 <tr>
15 <td>[% line.sha1.substr(0, 6) %]</td>
f71a83ab 16 <td>[% time_since(line.authored_time) %]</td>
790ce598 17 <td>[% line.author.name | html %]</td>
0ee97fec 18 <td>
f71a83ab 19 [% # XXX This needs to be moved into a Template::Plugin or some such.
20 cmt = line.comment.split("\n").0;
21 (cmt.length > 80 ? cmt.substr(0, 80) _ '...' : cmt) | html %]
0ee97fec 22 <span class='refs'>
23 [% FOREACH ref IN refs.${line.sha1} %]
24 <span class='[% ref.search('^remotes/') ? 'remote' : 'head' %]'>
f71a83ab 25 <a href='[% c.uri_for("shortlog", {h='refs/' _ ref}) %]'>[% ref.replace('^(remote|head)s/', '') %]</a>
0ee97fec 26 </span>
27 [% END %]
28 </span>
29 </td>
790ce598 30 <td class='action-list'>
f71a83ab 31 <a href="[% c.uri_for("commit", {h=line.sha1}) %]">commit</a>
32 <a href="[% c.uri_for("commitdiff", {h=line.sha1}) %]">commitdiff</a>
33 <a href="[% c.uri_for("tree", {h=line.sha1, hb=line.tree_sha1}) %]">tree</a>
790ce598 34 </td>
35 </tr>
36 [% END %]
37 </tbody>
38
39 <tfoot>
40 <tr>
41 <td>sha1</td>
42 <td>time</td>
43 <td>author</td>
44 <td>message</td>
45 <td>actions</td>
46 </tr>
47 </tfoot>
48</table>