1 [% BLOCK tree_table_headfoot %]
8 <table class='tree listing'>
10 [% PROCESS tree_table_headfoot %]
13 [% PROCESS tree_table_headfoot %]
17 [% FOREACH item IN tree_list %]
19 <td class='file-mode'>[% item.modestr %]</td>
21 action_type = item.type == 'tree' ? 'tree' : 'blob';
22 action_for_link = item.type == 'tree' ? c.action : c.controller.action_for('blob');
23 blob_or_tree_link = c.uri_for(action_for_link, c.req.captures, c.req.args.to_path(item.file))
25 <td class='file-name'>
26 <a href="[% blob_or_tree_link %]">[% item.file %]</a>
28 <td class='action-list'>
29 <a href="[% blob_or_tree_link %]">[% theact %]</a>
30 [% IF item.type == 'blob' %]
31 <a href="[% c.uri_for(c.controller.action_for('blame'), c.req.captures, c.req.args.to_path(item.file)) %]">blame</a>
33 <a href="[% c.uri_for(c.controller.action_for('history'), c.req.captures, c.req.args.to_path(item.file)) %]">history</a>
34 [% IF item.type == 'blob' %]
35 <a href="[% c.uri_for(c.controller.action_for('raw'), c.req.captures, c.req.args.to_path(item.file)) %]">raw</a>