d8628294f513801d97d8415ba277f344c6969781
[catagits/Gitalist.git] / templates / _shortlog.tt2
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>
16    <td>[% time_since(line.authored_time) %]</td>
17    <td>[% line.author.name | html %]</td>
18    <td>
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 %]
22     <span class='refs'>
23      [% FOREACH ref IN refs.${line.sha1} %]
24      <span class='[% ref.search('^remotes/') ? 'remote' : 'head' %]'>
25       <a href='[% c.uri_for("shortlog", {h='refs/' _ ref}) %]'>[% ref.replace('^(remote|head)s/', '') %]</a>
26      </span>
27      [% END %]
28     </span>
29    </td>
30    <td class='action-list'>
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>
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>