Fix up the long log, add more gravatars, fix up links and time stamps and other bits
[catagits/Gitalist.git] / root / fragment / repository / longlog.tt2
CommitLineData
b9c202e2 1 <div id='log'>
2 [% FOREACH line IN log_lines %]
3 <div class='entry'>
4 <div class="message">
5 [% message = line.comment | html;
6 message.replace("\n", "<br/>") %]
7 <div class='chroma-hash'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = line.sha1 %]</div>
8 </div>
9 <div class="meta">
10 <table class='summary' cellspacing='0' cellpadding='0'>
11 <tr><td>author</td><td class='author'>
12 <img style="float: left; padding-right: 10px" src="[% uri_for_gravatar(line.author.email, 20) %]">
13 [% line.author.name | html %]</td></tr>
14 <tr><td>authored time</td><td class='time'>[% time_since(line.authored_time) %]</td></tr>
15 [% IF line.author.name != line.committer.name %]
16 <tr><td>committer</td><td class='author'>
17 <img style="float: left; padding-right: 10px" src="[% uri_for_gravatar(line.author.email, 20) %]">
18 [% line.committer.name | html %]
19 </td></tr>
20 <tr><td>committered time</td><td class='time'>[% line.committed_time %]</td></tr>
21 [% END %]
22 </table>
23 <span class="time-since">[% time_since(line.authored_time) %]</span>
24 <div class="action-list">
25 <a href="[% c.uri_for_action("/commit/commit", [Repository.name, line.sha1]) %]">commit</a>
26 | <a href="[% c.uri_for_action("/commit/diff_fancy", [Repository.name, line.sha1]) %]">commitdiff</a>
27 | <a href="[% c.uri_for_action("/commit/tree", [Repository.name, line.sha1]) %]">tree</a>
28 </div>
29 </div>
30 </div>
31 [% END %]
32 </div>