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