18 [% FOREACH item IN tree_list %]
20 <td>[% item.modestr %]</td>
21 [% theact = item.type == 'tree' ? 'tree' : 'blob' -%]
23 <a href="[% c.uri_for(theact, {h=item.sha1, hb=commit.sha1, f=(path ? path _ '/' _ item.file : item.file)}) %]">[% item.file %]</a>
25 <td class='action-list'>
26 <a href="[% c.uri_for(theact, {h=item.sha1, hb=commit.sha1, f=item.file}) %]">[% theact %]</a>
27 <a href="[% c.uri_for('history', {h=item.sha1, hb=commit.sha1, f=item.file}) %]">history</a>
28 [% IF item.type == 'blob' %]
29 <a href="[% c.uri_for('raw', {hb=commit.sha1, f=item.file}) %]">raw</a>