[% BLOCK tree_table_headfoot %] mode file actions [% END %] [% PROCESS tree_table_headfoot %] [% PROCESS tree_table_headfoot %] [% FOREACH item IN tree_list %] [%- action_type = item.type == 'tree' ? 'tree' : 'blob'; action_for_link = item.type == 'tree' ? c.action : c.controller.action_for('blob'); blob_or_tree_link = c.uri_for(action_for_link, c.req.captures, c.req.args.to_path(item.file)) -%] [% END %]
[% item.modestr %] [% item.file %] [% theact %] [% IF item.type == 'blob' %] blame [% END %] history [% IF item.type == 'blob' %] raw [% END %]