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