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' ? '/commit/tree' : '/commit/blob';
23 blob_or_tree_link = c.uri_for_action(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_action('/commit/blob', c.req.captures, c.req.args.to_path(item.file)) %]">blob</a>
32 <a href="[% c.uri_for_action('/commit/blame', c.req.captures, c.req.args.to_path(item.file)) %]">blame</a>
34 <a href="[% c.uri_for_action('/commit/history', c.req.captures, c.req.args.to_path(item.file)) %]">history</a>
35 [% IF item.type == 'blob' %]
36 <a href="[% c.uri_for_action('/commit/raw', c.req.captures, c.req.args.to_path(item.file)) %]">raw</a>