Commit | Line | Data |
2cf1e781 |
1 | <div class='content'> |
2cf1e781 |
2 | [%# XXX Nabbed the HTML below from gitweb's log action. %] |
3 | [% FOREACH result IN results %] |
4 | <div class="header"> |
2980657b |
5 | <a class="title" href="[% c.uri_for_action('/ref/commit', [ Repository.name, result.sha1 ]) %]"> |
2cf1e781 |
6 | <span class="age">[% result.authored_time %]</span> |
7 | [% short_cmt(result.comment) | html %] |
8 | </a> |
9 | </div> |
4df2f62f |
10 | |
2cf1e781 |
11 | <div class="title_text"> |
12 | <div class="log_link"> |
2980657b |
13 | <a href="[% c.uri_for_action('/ref/commit', [Repository.name, result.sha1]) %]">commit</a> |
14 | | <a href="[% c.uri_for_action('/ref/diff_fancy', [Repository.name, result.sha1]) %]">commitdiff</a> |
15 | | <a href="[% c.uri_for_action('/ref/tree', [Repository.name, result.tree_sha1]); %][%# hb=line.sha1 %]">tree</a> |
2cf1e781 |
16 | </div> |
17 | <i>[% result.author.name | html %] [% line.authored_time %]</i> |
18 | </div> |
4df2f62f |
19 | |
2cf1e781 |
20 | <div class="log_body"> |
21 | [% |
22 | # XXX This is fragile at best. |
23 | html_comment = result.comment | html; |
24 | html_comment.replace( |
25 | c.req.param('text'), '<span class="match">' _ c.req.param('text') _ '</span>' |
26 | ); |
27 | %] |
28 | </div> |
29 | [% END %] |
4df2f62f |
30 | </div> |