13 [% FOREACH line IN log_lines %]
15 <td>[% line.sha1.substr(0, 6) %]</td>
16 <td>[% time_since(line.authored_time) %]</td>
17 <td>[% line.author.name | html %]</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 %]
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>
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>