Commit | Line | Data |
af8c29dd |
1 | [% BLOCK shortlog_table_headfoot %] |
aebe9a0e |
2 | [% SET cell = type == 'head' ? 'th' : 'td' %] |
af8c29dd |
3 | <tr> |
feb6e881 |
4 | <[% cell %] colspan="2"><a href="" class="compare-link">Compare</a></[% cell %]> |
82f94bce |
5 | <[% cell %]>ID (sha1)</[% cell %]> |
eab82ed1 |
6 | <[% cell %]>Last change</[% cell %]> |
82f94bce |
7 | <[% cell %]>Message</[% cell %]> |
eab82ed1 |
8 | <[% cell %]>By</[% cell %]> |
82f94bce |
9 | <[% cell %]>Actions</[% cell %]> |
af8c29dd |
10 | </tr> |
11 | [% END %] |
7e8a7295 |
12 | |
feb6e881 |
13 | <form id="compare-form"> |
eab82ed1 |
14 | <table class='listing'> |
82f94bce |
15 | <thead>[% PROCESS shortlog_table_headfoot type = 'head' %]</thead> |
16 | <tbody> |
7e8a7295 |
17 | [% FOREACH line IN log_lines %] |
82f94bce |
18 | <tr [% "class='invert'" IF loop.count % 2 %]> |
feb6e881 |
19 | <td><input type="radio" name="sha1_a" value="[% line.sha1 %]" [% "checked" IF loop.count == 1 %] /></td> |
20 | <td><input type="radio" name="sha1_b" value="[% line.sha1 %]" [% "checked" IF loop.count == 2 %]/></td> |
82f94bce |
21 | <td class='sha1' title='[% line.sha1 %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %]</td> |
22 | <td class='time-since' title='[% line.authored_time %]'>[% time_since(line.authored_time) %]</td> |
2ee4b079 |
23 | <td><p class='commit-message'>[%- |
24 | IF longlogformat; |
25 | line.comment | html; |
26 | ELSE; |
27 | short_cmt(line.comment) | html; |
fe89796b |
28 | |
2ee4b079 |
29 | END; |
30 | -%]</p>[% INCLUDE '_refs.tt2' object = line %]</td> |
225bd36d |
31 | <td class='author'>[% INCLUDE 'inc/gravatar.tt2' email = line.author.email %][% line.author.name | html %]</td> |
82f94bce |
32 | <td class='action-list'> |
33 | <a href="[% c.uri_for_action("/ref/commit", [Repository.name, line.sha1]) %]" title="Commit details" class="button commit">commit</a> |
34 | <a href="[% c.uri_for_action("/ref/diff_fancy", [Repository.name, line.sha1]) %]" title="Commit difference" class="button diff">commitdiff</a> |
35 | <a href="[% c.uri_for_action("/ref/tree", [Repository.name, line.sha1]) %]" title="Tree" class="button tree">tree</a> |
36 | </td> |
37 | </tr> |
38 | [% END %] |
71eba67c |
39 | <tr> |
feb6e881 |
40 | <td colspan="2"><a href="" class="compare-link">Compare</a></td> |
71eba67c |
41 | <td colspan="5"></td> |
42 | </tr> |
82f94bce |
43 | </tbody> |
44 | </table> |
535bc6e2 |
45 | </form> |
feb6e881 |
46 | |
fe89796b |
47 | <span id="diff-uri" class="js-data">[% c.uri_for_action('/ref/diff_fancy', [Repository.name, 'HEAD']) %]</span> |
82f94bce |
48 | |
d846a6cb |
49 | [% INCLUDE 'inc/log_pager.tt2' %] |