[% BLOCK tree_table_headfoot %] [% SET cell = type == 'head' ? 'th' : 'td' %] <[% cell %]>mode <[% cell %]>file <[% cell %]>actions [% END %] [% PROCESS tree_table_headfoot type = 'head' %][% PROCESS tree_table_headfoot type = 'foot' %] [% FOREACH item IN tree_list %] [%- action_type = item.type == 'tree' ? 'tree' : 'blob'; action_for_link = item.type == 'tree' ? '/ref/tree' : '/ref/blob'; blob_or_tree_link = c.uri_for_action(action_for_link, c.req.captures, c.req.args.to_path(item.file)) -%] [% END %]
[% item.modestr %] [% item.file %] [% theact %] [% IF item.type == 'blob' %] blob blame [% END %] history [% IF item.type == 'blob' %] raw [% END %]