[%- IF no_wrapper || template.name.match('\.(css|js|txt)'); content; ELSE; -%] [%# FIXME - MING %][%- title = BLOCK; c.config.sitename; IF Repository; ' - ' _ Repository.name | html; END; IF c.action; ' / ' _ c.action; END; IF filename; ' - ' _ filename | html; END; IF c.action && c.action == 'tree'; '/'; END; END; title; -%] (Gitalist) [% INCLUDE '_header_feeds.tt2' %]

Home [%- IF Repository %] / [% Repository.name %] [%- END %] / [%- IF Repository %] [%# FIXME: output branch name in a nicer way!!! #%] [%- FOREACH branch_head IN Repository.heads %] [%- IF c.req.path.search(branch_head.name) %] [% branch_head.name %] / [% END -%] [% END -%] [%- END %] [%- #FIXME on a history view of a folder, don't show extra actions in dropdown SET on_file_page = 1; SET actions_list = { "blob" => 1, "raw" => 1, "blame" => 1, "history" => 1, }; SET action_name = c.action.name .replace("_"," ") .replace("log", " log") .replace("fancy","") .replace("index","Repositories"); action_name_ucfirst = action_name FILTER ucfirst; IF actions_list.$action_name && on_file_page; '' _ action_name_ucfirst _ ''; ELSE; action_name_ucfirst; END; -%]

[%- IF actions_list.$action_name; ''; END; -%]
[% content %]

Debug:

[% USE Dumper %]
	[% Repository.path %]
	[% Dumper.dump(c.req.args) %]
	
[% # A bit of smoke and mirrors to get the /repository/shortlog URIs working cur_act = '' _ c.action; cur_uri = cur_act.match("log") || cur_act.match("^ref") ? '/ref/' _ cur_act.replace("^(repository|ref)/", '') : cur_act; # XXX I just want lists! IF c.req.args.size > 0; c.uri_for_action(cur_uri, [Repository.name, 'HEAD'], c.req.args.0); ELSE; c.uri_for_action(cur_uri, [Repository.name, 'HEAD']); END; %] [% c.uri_for_action('/repository/heads', [Repository.name]) %] [%- END -%]