Added first cut of /shortlog action and simplified the parse_rev_list() method.
[catagits/Gitalist.git] / templates / shortlog.tt2
CommitLineData
47495599 1[% INCLUDE 'commit-nav.tt2' object = commit %]
2
3<div>
4[% project %]
5</div>
6
7<table>
8 <thead>
9 <tr>
10 <td>time</td>
11 <td>author</td>
12 <td>message</td>
13 <td>actions</td>
14 </tr>
15 </thead>
16
17 <tbody>
18 [% FOREACH line IN c.model('Git').list_revs('rev', commit.sha1) %]
19 <tr>
20 <td>[% line.authored_time %]</td>
21 <td>[% line.author.name | html %]</td>
22 <td class='commit-message'>[% '[' _ line.sha1.substr(0, 6) _ '] ' _ line.comment.substr(0, 50) | html %]</td>
23 <td class='action-list'>
24 <a href="/commit?p=[% project %];h=[% line.sha1 %]">commit</a>
25 <a href="/commitdiff?p=[% project %];h=[% line.sha1 %]">commitdiff</a>
26 <a href="/tree?p=[% project %];h=[% line.sha1 %];hb=[% line.tree_sha1 %]">history</a>
27 </td>
28 </tr>
29 [% END %]
30 </tbody>
31
32 <tfoot>
33 <tr>
34 <td>time</td>
35 <td>author</td>
36 <td>message</td>
37 <td>actions</td>
38 </tr>
39 </tfoot>
40</table>